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
- npm
- Shell script
- Binary
- Go
npx @funky-dev/cli in place of funky.funky --version to check which version you have.
Log in
- The CLI acts as you, in one project. Run
funky loginagain to switch projects. - The login lasts 90 days and is stored in your operating system’s keychain.
funky whoamishows the account and project the CLI is using.funky logoutsigns the CLI out. You can also revoke a CLI login under Settings in the Funky platform.
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
agents/ folder in the current directory.2
Describe an agent
Add one YAML file per agent config to See Agent files for every field.
agents/. The file name is the
agent’s name.agents/researcher.yaml
3
Apply
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 offunky 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
npx @funky-dev/cli apply --dry-run on
pull requests.