Skip to main content
Each .yaml or .yml file in agents/ describes one agent config. The fields are the agent config fields of the Funky API.
agents/researcher.yaml
inference, systemPrompt, and network are required. The other fields default to empty. The CLI rejects unknown fields, so a typo fails before anything is sent.

Name

An agent is named after its file: agents/researcher.yaml is researcher. To use a different name, set name: in the file. Names use 1 to 64 letters, digits, _, and -, and must be unique within agents/. The CLI stores the name in the config’s metadata as funky.dev/name. That is how the next funky apply finds the config to update, so don’t set that key yourself. Renaming a file creates a new config, and the config under the old name stays as it is.

inference

The model the agent uses. See Model for the supported providers and models.

systemPrompt

The agent’s instructions. Use a YAML block scalar (|) for prompts that span several lines.

network

Which domains the agent’s sandbox can reach.

packages

Packages installed into the sandbox before the agent starts working, keyed by package manager. Each spec uses that package manager’s own syntax.
apt, pip, and npm are supported. Pin versions to control them: an unpinned spec resolves once, the first time the package set is built.

setupCommands

Shell commands that run after the packages install, in order, each in its own shell. They run once when the sandbox image is built, not once per session, so they don’t have access to credentials.

credentials

Credentials let the agent call an API with a secret it can’t read. Outside the sandbox, Funky sets the header on HTTPS requests to the listed hosts. Inside, the environment variable only holds a placeholder.

metadata

Your own key-value pairs, stored with the config. funky.dev/name is reserved for the CLI.