Skip to main content
The funky CLI keeps your agent configs in YAML files next to your code. You describe each agent in a file, and funky apply creates or updates it in your Funky Cloud project. It works like Terraform, but for agent configs.

Install

To run it without installing, use npx @funky-dev/cli in place of funky.
Builds are available for macOS, Linux, and Windows on x64 and arm64. Run funky --version to check which version you have.

Log in

Your browser opens to Funky. Sign in, choose the project the CLI should act on, and approve the login. The page then tells you to return to the terminal.
  • The CLI acts as you, in one project. Run funky login again to switch projects.
  • The login lasts 90 days and is stored in your operating system’s keychain.
  • funky whoami shows the account and project the CLI is using.
  • funky logout signs the CLI out. You can also revoke a CLI login under Settings in the Funky platform.
On a machine without a browser, such as over SSH, run funky login --no-browser. The CLI prints a link to open on another device and asks for the code the page shows.

Manage agents as code

1

Create the project structure

This creates an agents/ folder in the current directory.
2

Describe an agent

Add one YAML file per agent config to agents/. The file name is the agent’s name.
agents/researcher.yaml
See Agent files for every field.
3

Apply

The CLI compares your files with the project and shows a plan:
Type yes to apply it. For updates, the plan lists the fields that changed.

How apply works

  • New files create agent configs.
  • Changed files update their agent config. Only the changed fields are sent, so each apply adds at most one version to a config.
  • Unchanged files are left alone.
  • Concurrent edits are detected. Each update is pinned to the version the plan saw. If someone changes the config in the meantime, apply stops with a conflict instead of overwriting their change.
  • Nothing is archived. Deleting a file leaves its agent config in place.

Use in CI

In CI, use an API key instead of funky login. Create one on the API keys page and set it as FUNKY_API_KEY. When it is set, the CLI uses it instead of any login, and acts on the key’s project.
.github/workflows/agents.yml
To review changes before merging, run npx @funky-dev/cli apply --dry-run on pull requests.