Cookies

We count visits with our own Matomo server. By default it uses no cookies. Turn cookies on to help us see what works. You can change this at any time.

API and CLIEarly access

Script your firewall with the API and CLI

An API is a way for programs to talk to the box. Every screen in Firecradle uses the same REST API, so anything you can click, a script can do. The firecradle command line tool, or CLI, uses that API too.

  • One API for screen and scripts
  • API tokens
  • Config as code
  • Shell completion
  • Built-in API docs
The Firecradle firewall rules list with allow and block rules.
The rules on this screen come from the same API your scripts use.

A few commands

These come from the command list in the Firecradle docs. Add --json to most of them to get output a script can read.

  • firecradle status
    Show how the box is doing.
  • firecradle posture
    Show how safe the setup is, in plain words.
  • firecradle firewall rules list
    List the firewall rules.
  • firecradle config export -o site.yaml
    Save the whole setup to a file, with secrets left out.
  • firecradle config apply -f site.yaml
    Load a saved setup. It asks you to confirm first.
  • firecradle top
    Watch the box live in your terminal.

The REST API

Same API as the screens

The web screens and the CLI both call the same API. Nothing is hidden from scripts.

Built-in docs

The API describes itself, and its docs can be browsed page by page. Calls are grouped by area.

API tokens

Give a script its own token. Tokens can expire or be revoked, and they get no more than their role allows.

Same safety checks

Each change through the API checks roles and inputs. Firewall changes keep the anti-lockout check.

The command line tool

Works on the box, no setup

On the box, the CLI finds its own local token. Off the box, you sign in once and it saves a token.

Config as code

Export the whole setup to a JSON or YAML file. Keep it in version control. Apply it again later.

Completion and a man page

Tab completion works in bash and zsh. A man page ships with the tool.

When the network is down

A rescue menu on the console

Plug in a screen and keyboard, or a serial cable. A menu can reset the admin password or load safe firewall rules.

Rescue keeps the safety checks

Safe rules from the rescue menu use the same anti-lockout check as the API.

How to get access

Each box carries its own API docs.

Join early access

Early access boxes come with the API and CLI. Ask us on the early access form, and we will help you get started.

Want to automate your firewall?

Join early access and tell us what you want to script.

Firecradle is in early access.

Questions people ask

Does Firecradle have an API?

Yes. A REST API drives every screen. The firecradle command line tool uses it too.

How do scripts sign in?

With an API token. Tokens can expire or be revoked, and they never get more than their role.

Can I keep my firewall config in version control?

Yes. Export the setup to a JSON or YAML file with secrets left out, and apply it again later.