kojo.yaml is the deployment config: what the process needs to start. Everything the team tunes afterwards (skills, repositories, schedules, model tiers, budgets, merge policy, access) is runtime config, changed live in the dashboard.

Values may reference environment variables: ${NAME}, or ${NAME:-default}. A referenced variable that is unset and has no default is an error. Unknown keys are errors.

The JSON Schema is published at https://xavidop.github.io/kojo/schema/kojo.schema.json and printed by kojo schema kojo.

Examples

A complete file for each supported deployment. Each section below has shorter examples of its own. kojo config validate -f kojo.yaml checks a file without starting anything.

Single VM with Docker Sandboxes

A single VM: kōjō runs on the host next to Docker Sandboxes (sbx), and Postgres runs in Docker Compose. The ${NAME} values come from the environment, usually an .env file that the systemd unit loads.

server:
  # How forges, Slack and browsers reach kōjō.
  public_url: "${KOJO_PUBLIC_URL}"
  # Loopback: a TLS reverse proxy in front of kōjō takes the public traffic,
  # the forges' webhooks included.
  listen: "127.0.0.1:8080"
  auth:
    # Signs the dashboard's session cookie.
    session_secret: "${KOJO_SESSION_SECRET}"
    # Sign-in for people.
    oidc:
      issuer: https://accounts.google.com
      client_id: "${OIDC_CLIENT_ID}"
      client_secret: "${OIDC_CLIENT_SECRET}"
      allowed_domains: [example.com]
    # Written to the rbac object with the admin role on the first start.
    admins: [ana@example.com]
    # A static API token for the CLI, CI and MCP clients.
    tokens:
      - name: admin
        token: "${KOJO_ADMIN_TOKEN}"
        role: admin

database:
  # The Postgres of docker-compose.yml, published on loopback.
  url: "postgres://kojo:${POSTGRES_PASSWORD}@127.0.0.1:5432/kojo?sslmode=disable"

forges:
  # The GitHub App that `kojo setup github` creates.
  github:
    app_id: "${GITHUB_APP_ID}"
    private_key_file: /etc/kojo/secrets/github-app.pem
    webhook_secret: "${GITHUB_WEBHOOK_SECRET}"

chat:
  slack:
    # Socket mode needs no inbound connection.
    mode: socket
    bot_token: "${SLACK_BOT_TOKEN}"
    app_token: "${SLACK_APP_TOKEN}"

models:
  # kōjō calls the providers itself.
  gateway: embedded
  providers:
    anthropic:
      api_key: "${ANTHROPIC_API_KEY}"
  # Tiers and budgets are initial values: after the first start they are the
  # settings/models object.
  tiers:
    fast:
      provider: anthropic
      model: claude-haiku-5-5
      # USD per million tokens. Without a price the tier's calls cost 0 and
      # the budgets do not bound them.
      price:
        input_per_mtok: 0.10
        output_per_mtok: 0.50
    strong:
      provider: anthropic
      model: claude-opus-5-5
      price:
        input_per_mtok: 4
        output_per_mtok: 20
  budgets:
    per_session_usd: 10
    per_day_usd: 200

sandbox:
  # One microVM per session. sbx enforces egress and injects credentials with
  # its own proxy on the host, so this driver takes no sandbox.proxy block.
  driver: sbx

defaults:
  # Draft pull requests only.
  merge_policy: draft_only

Kubernetes with Agent Sandbox

Kubernetes with the k8s driver (Agent Sandbox). The Helm chart renders this file from its config value and sets server.listen, database.url, sandbox.driver, sandbox.k8s.namespace, sandbox.k8s.runtime_class and sandbox.proxy itself; with existingConfigMap you write the whole file. The chart sets the DATABASE_URL, KOJO_SESSION_SECRET, KOJO_SANDBOX_NAMESPACE and KOJO_PROXY_* variables; the others come from your Secret.

server:
  public_url: https://kojo.example.com
  listen: ":8080"
  # Sessions each replica runs at once.
  workers: 4
  auth:
    # Shared by every replica, so a sign-in works on all of them.
    session_secret: "${KOJO_SESSION_SECRET}"
    oidc:
      issuer: https://accounts.google.com
      client_id: "${OIDC_CLIENT_ID}"
      client_secret: "${OIDC_CLIENT_SECRET}"
      allowed_domains: [example.com]
    admins: [ana@example.com]
    tokens:
      - name: ci
        token: "${KOJO_CI_TOKEN}"
        role: operator

database:
  url: "${DATABASE_URL}"

forges:
  github:
    app_id: "${GITHUB_APP_ID}"
    # Mounted from a Secret with the chart's extraVolumes.
    private_key_file: /secrets/github-app.pem
    webhook_secret: "${GITHUB_WEBHOOK_SECRET}"

chat:
  slack:
    mode: socket
    bot_token: "${SLACK_BOT_TOKEN}"
    app_token: "${SLACK_APP_TOKEN}"

models:
  gateway: embedded
  providers:
    anthropic:
      api_key: "${ANTHROPIC_API_KEY}"
  tiers:
    fast:
      provider: anthropic
      model: claude-haiku-5-5
      price:
        input_per_mtok: 0.10
        output_per_mtok: 0.50
    strong:
      provider: anthropic
      model: claude-opus-5-5
      price:
        input_per_mtok: 4
        output_per_mtok: 20
  budgets:
    per_session_usd: 10
    per_day_usd: 200

sandbox:
  driver: k8s
  k8s:
    namespace: "${KOJO_SANDBOX_NAMESPACE}"
    # The RuntimeClass of every sandbox pod: kata, gvisor or a name of your
    # cluster.
    runtime_class: kata
    # Pods kept ready per sandbox template.
    warm_pool_size: 2
  # kojo-proxy is its own deployment: sandboxes reach the network only
  # through it. Its replicas are found through the admin URL's name (the
  # chart's headless proxy-admin Service), and each gets every policy.
  proxy:
    mode: remote
    listen: ":3128"
    admin_listen: ":3129"
    advertise_url: "${KOJO_PROXY_ADVERTISE_URL}"
    admin_url: "${KOJO_PROXY_ADMIN_URL}"
    admin_discovery: dns
    admin_token: "${KOJO_PROXY_ADMIN_TOKEN}"
    ca_cert_file: /var/run/kojo/proxy-ca/tls.crt
    ca_key_file: /var/run/kojo/proxy-ca/tls.key
  ttl: 4h

defaults:
  merge_policy: draft_only

seed:
  activation:
    # Activating a skill draft needs an eval with a pass rate of at least 0.7.
    require_eval: true
    min_eval_pass_rate: 0.7

telemetry:
  otlp_endpoint: http://otel-collector.observability.svc:4318

Top level

Key Type Description
dev boolean Dev turns on development mode: it allows the insecure sandbox drivers (docker, fake), runc on Kubernetes and a dashboard without OIDC. kojo doctor fails a production check while it is set.
server object
database object
forges object
chat object
trackers object Trackers are the issue trackers kōjō takes work from: Linear, Jira Cloud and Asana.
alerts object Alerts are the sources of production alerts kōjō takes work from: Sentry and Datadog Error Tracking.
models object
sandbox object
defaults object Defaults are initial values only: after install they are managed in the dashboard and stored as config revisions.
seed object Seed is only read on the first start against an empty database.
telemetry object

server

Key Type Description
public_url string PublicURL is how forges, Slack and browsers reach kōjō.
listen string Listen is the address to bind. Default “:8080”.
metrics_listen string MetricsListen is the address /metrics is served on, apart from the dashboard, the API and the webhooks, so that putting Listen on a public network does not publish the metrics. “off” serves none. Default “127.0.0.1:9090”; the Helm chart sets “:9090”.
auth object
workers integer Workers is how many sessions this replica runs at once. Default 4.
network_policy boolean NetworkPolicy says whether NetworkPolicies limit who reaches Postgres, kojo-proxy’s admin port and the metrics port. The Helm chart sets it from networkPolicy.enabled, and kojo doctor warns when it is false. Unset, kōjō does not know and doctor does not check.

OIDC sign-in for people, one admin seeded on the first start, and a static API token for CI.

server:
  public_url: https://kojo.example.com
  listen: ":8080"
  workers: 8
  auth:
    session_secret: "${KOJO_SESSION_SECRET}"
    oidc:
      issuer: https://accounts.google.com
      client_id: "${OIDC_CLIENT_ID}"
      client_secret: "${OIDC_CLIENT_SECRET}"
      scopes: [openid, email, profile]
      allowed_domains: [example.com]
    admins: [ana@example.com]
    tokens:
      - name: ci
        token: "${KOJO_CI_TOKEN}"
        role: operator

server.auth

Key Type Description
oidc object
tokens list of objects Tokens are static API tokens for the CLI, CI and MCP clients.
admins list of strings Admins are the emails written to the rbac object with the admin role on the first start against an empty database. After that, roles are managed in the dashboard and a change here has no effect.
session_secret string SessionSecret signs the dashboard’s session cookie. When empty a random one is generated at start, which signs everyone out on restart and does not work with more than one replica.

server.auth.oidc

Key Type Description
issuer string
client_id string
client_secret string
scopes list of strings
allowed_domains list of strings AllowedDomains restricts sign-in to these email domains.
trust_unverified_email boolean TrustUnverifiedEmail accepts an ID token that has no email_verified claim, for identity providers that never send it (Microsoft Entra ID and AD FS among them). Without it, such a token is refused: a provider that does not vouch for an address may let a person pick anyone’s, an admin’s included. Turn it on only for a provider whose addresses your organization assigns. A token whose email_verified is false is refused either way.

server.auth.tokens

Key Type Description
name string
token string
role string Role is viewer, skill:edit, operator or admin. Default operator.

database

Key Type Description
url string
max_conns integer MaxConns is the size of the connection pool: 0 for pgx’s default (the larger of 4 and the number of CPUs), otherwise at least 2, because a campaign update holds one connection while it uses another.

The password comes from a variable, and the pool is capped at 20 connections.

database:
  url: "postgres://kojo:${POSTGRES_PASSWORD}@db.example.com:5432/kojo?sslmode=require"
  max_conns: 20

forges

Key Type Description
github object
gitlab object
forgejo object
bitbucket object

One block per forge. Configure only the ones you use.

forges:
  github:
    app_id: "${GITHUB_APP_ID}"
    private_key_file: /etc/kojo/secrets/github-app.pem
    webhook_secret: "${GITHUB_WEBHOOK_SECRET}"
  gitlab:
    base_url: https://gitlab.example.com
    token: "${GITLAB_TOKEN}"
    webhook_secret: "${GITLAB_WEBHOOK_SECRET}"
  forgejo:
    base_url: https://git.example.com
    token: "${FORGEJO_TOKEN}"
    webhook_secret: "${FORGEJO_WEBHOOK_SECRET}"
  bitbucket:
    workspace: acme
    token: "${BITBUCKET_TOKEN}"
    webhook_secret: "${BITBUCKET_WEBHOOK_SECRET}"

GitHub Enterprise Server, with the App’s private key passed in a variable instead of a file.

forges:
  github:
    app_id: "${GITHUB_APP_ID}"
    private_key: "${GITHUB_APP_PRIVATE_KEY}"
    webhook_secret: "${GITHUB_WEBHOOK_SECRET}"
    base_url: https://ghe.example.com/api/v3

forges.github

Key Type Description
app_id string
private_key_file string PrivateKeyFile is the App’s PEM private key. PrivateKey holds the PEM itself instead (from an environment variable).
private_key string
webhook_secret string
base_url string BaseURL is the API root of a GitHub Enterprise Server (https://ghe.example.com/api/v3). Empty means github.com.

forges.gitlab

Key Type Description
base_url string BaseURL defaults to https://gitlab.com.
token string
webhook_secret string WebhookSecret is the webhook’s secret token (X-Gitlab-Token).

forges.forgejo

Key Type Description
base_url string
token string
webhook_secret string

forges.bitbucket

Key Type Description
workspace string Workspace is the workspace ID (slug) whose repositories kōjō lists.
token string Token is an API token with scopes of the bot’s Atlassian account.
webhook_secret string WebhookSecret is the secret of the repositories’ webhooks (X-Hub-Signature).

chat

Key Type Description
slack object
teams object
discord object
mattermost object

Slack in socket mode: kōjō opens the connection, so Slack needs no route to it.

chat:
  slack:
    mode: socket
    bot_token: "${SLACK_BOT_TOKEN}"
    app_token: "${SLACK_APP_TOKEN}"

Discord: kōjō opens the gateway connection, so Discord needs no route to it. Roles of one server decide who may do what.

chat:
  discord:
    bot_token: "${DISCORD_BOT_TOKEN}"
    application_id: "1200000000000000001"
    guild_id: "1100000000000000001"        # the server kōjō serves
    roles:                                 # Discord role ID: kōjō role
      "1100000000000000002": operator      # @maintainers may start work and approve
      "1100000000000000003": skill:edit
    users:                                 # Discord user ID: email of an rbac entry
      "1300000000000000001": ana@example.com

Slack in http mode: Slack sends events to kōjō’s public URL, and the signing secret verifies them.

chat:
  slack:
    mode: http
    bot_token: "${SLACK_BOT_TOKEN}"
    signing_secret: "${SLACK_SIGNING_SECRET}"

Mattermost: kōjō signs in as a bot account and opens a WebSocket to the server. The server calls kōjō’s public URL when someone clicks an approval button, and the action secret tells those calls from forged ones.

chat:
  mattermost:
    url: https://chat.example.com
    token: "${MATTERMOST_BOT_TOKEN}"
    action_secret: "${MATTERMOST_ACTION_SECRET}"

Microsoft Teams: a single-tenant Azure Bot whose messaging endpoint is the public URL followed by /teams/messages. Teams calls kōjō there, so the public URL must be https.

chat:
  teams:
    app_id: 6f9619ff-8b86-4d11-b42d-00c04fc964ff      # the bot's Microsoft App ID
    app_password: "${TEAMS_APP_PASSWORD}"             # a client secret of that app
    tenant_id: 72f988bf-86f1-41af-91ab-2d7cd011db47   # the bot's App Tenant ID

chat.slack

Key Type Description
mode string Mode is socket (no public ingress needed) or http. Default socket.
bot_token string
app_token string AppToken is the app-level token (xapp-…) Socket Mode needs.
signing_secret string SigningSecret verifies requests in http mode.
api_url string APIURL overrides https://slack.com/api/ (the Slack mock in dev stacks).

chat.teams

Key Type Description
app_id string AppID is the bot’s Microsoft App ID (the application’s client ID).
app_password string AppPassword is the application’s client secret.
tenant_id string TenantID is the Microsoft Entra tenant of a single-tenant bot registration (its App Tenant ID): the bot gets its token from this tenant and serves only this tenant’s users. Empty means a multi-tenant registration, which needs allowed_tenants.
allowed_tenants list of strings AllowedTenants are further tenants whose users may talk to the bot. A multi-tenant registration has no tenant_id and must list its tenants here: anyone can install a multi-tenant bot, and kōjō trusts the email a tenant reports for a user.
text_format string TextFormat is how messages are sent: extendedmarkdown (default; headings, lists, code blocks and tables) or markdown, Teams’ older format, in which kōjō sends tables as code blocks.
service_url string ServiceURL is the Bot Connector endpoint for messages that answer no incoming one, such as a schedule’s notify. Default https://smba.trafficmanager.net/teams/ (the public cloud). kōjō sends the bot’s token only to the Teams endpoints it knows and to this host.
login_url string LoginURL overrides https://login.microsoftonline.com, where the bot gets its access token (sovereign clouds, a mock in tests).
token_scope string TokenScope overrides https://api.botframework.com/.default.
openid_metadata_url string OpenIDMetadataURL overrides https://login.botframework.com/v1/.well-known/openidconfiguration, the document that names the keys incoming requests are signed with.

chat.discord

Key Type Description
bot_token string BotToken is the bot’s token from the Discord developer portal.
application_id string ApplicationID is the application the bot belongs to. When set, kojo doctor checks that the token is that application’s.
guild_id string GuildID is the ID of the server kōjō serves. Messages from other servers are ignored, and a direct message is only taken from a member of this server.
roles map Roles maps the ID of a role of that server to a kōjō role: viewer, skill:edit, operator or admin. Discord gives a bot no email, so this is how a sender gets a role; someone without a mapped role is answered read-only. The server’s own ID stands for @everyone.
users map Users maps a Discord user ID to the email of that person’s entry in the rbac object, for people whose roles are managed there. Those roles add to the ones from Roles.
api_url string APIURL overrides https://discord.com/api (a mock in tests).

chat.mattermost

Key Type Description
url string URL is the server’s base URL (https://chat.example.com).
token string Token is the bot account’s access token.
action_secret string ActionSecret signs the buttons kōjō posts, so a click can be told from a forged request. Generated at start when empty, which does not survive a restart or work with several replicas.

trackers

Key Type Description
linear object
jira object
asana object

Issue trackers: a ticket assigned to kōjō’s account, a comment that mentions it, or one of the labels added starts a session on the repository the repos object maps the ticket to (tickets). Each tracker sends webhooks to <public_url>/webhooks/<name>; kojo setup linear|jira|asana prints what to configure.

trackers:
  linear:
    api_key: "${LINEAR_API_KEY}"             # personal API key of kōjō's Linear user
    webhook_secret: "${LINEAR_WEBHOOK_SECRET}"
    labels: [kojo]                           # adding this label also starts work
    status:                                  # off unless set
      started: In Progress
      review: In Review
  jira:
    base_url: https://acme.atlassian.net
    email: kojo@acme.example                 # the account of the API token
    api_token: "${JIRA_API_TOKEN}"
    webhook_secret: "${JIRA_WEBHOOK_SECRET}"
    users:                                   # Atlassian account ID: email of an rbac entry
      "557058:f58131cb-b67d-43c7-b30d-6b58d40bd077": ana@example.com
  asana:
    token: "${ASANA_TOKEN}"
    webhook_secrets: ["${ASANA_WEBHOOK_SECRET_1}"]  # written by kojo setup asana
    users:                                   # Asana user ID: email of an rbac entry
      "1200000000000001": ana@example.com

trackers.linear

Key Type Description
api_key string APIKey is a personal API key of kōjō’s Linear user (Settings, Security & access). Tickets are assigned to and mentions name that user.
webhook_secret string WebhookSecret is the signing secret Linear shows on the webhook’s page. Deliveries whose Linear-Signature does not verify are refused.
labels list of strings Labels start work when added to an issue, or when an issue is created with one.
status object Status moves an issue through its team’s workflow states, by name.
users map Users maps a Linear user ID to the email of that person’s entry in the rbac object, for a person whose Linear address is not that one. Everyone else is known by the email Linear reports.
api_url string APIURL overrides https://api.linear.app/graphql (a mock in tests).

trackers.linear.status

Key Type Description
started string Started is the status a ticket moves to when a session that may change code is queued for it (“In Progress”).
review string Review is the status a ticket moves to when its session opens a pull request (“In Review”).

trackers.jira

Key Type Description
base_url string BaseURL is the site’s address, such as https://acme.atlassian.net.
email string Email is the address of kōjō’s Atlassian account, which signs in with APIToken.
api_token string APIToken is an API token of that account (without scopes: a scoped token only works through api.atlassian.com).
webhook_secret string WebhookSecret is the secret of the webhook (Jira settings, System, WebHooks). Jira signs each delivery with it (X-Hub-Signature); deliveries that are not signed with it are refused.
labels list of strings Labels start work when added to an issue, or when an issue is created with one.
status object Status moves an issue through its workflow: the transition to the status of that name is made.
users map Users maps an Atlassian account ID to the email of that person’s entry in the rbac object. Jira gives a bot no email it can rely on, so this is how a person gets a role; anyone else’s requests are read-only.

trackers.jira.status

Key Type Description
started string Started is the status a ticket moves to when a session that may change code is queued for it (“In Progress”).
review string Review is the status a ticket moves to when its session opens a pull request (“In Review”).

trackers.asana

Key Type Description
token string Token is a personal access token of kōjō’s Asana user, or a service account’s token.
webhook_secrets list of strings WebhookSecrets are the secrets of kōjō’s webhooks, one per project (Asana gives each webhook its own, once, when it is created; kojo setup asana writes them to a file). A delivery signed with none of them is refused.
status object Status moves a task to the section of that name in its project.
users map Users maps an Asana user ID (gid) to the email of that person’s entry in the rbac object. Asana does not say whether the address it reports was verified, so this is how a person gets a role; anyone else’s requests are read-only.
api_url string APIURL overrides https://app.asana.com/api/1.0 (a mock in tests).

trackers.asana.status

Key Type Description
started string Started is the status a ticket moves to when a session that may change code is queued for it (“In Progress”).
review string Review is the status a ticket moves to when its session opens a pull request (“In Review”).

alerts

Key Type Description
sentry object
datadog object

Production alerts: a Sentry alert rule whose action is kōjō’s internal integration starts a session on the repository the repos object maps the error’s project to (alerts). Sentry sends the webhooks to <public_url>/webhooks/sentry; kojo setup sentry prints what to configure.

alerts:
  sentry:
    base_url: https://sentry.io                  # the default; a region's or a self-hosted install's
    org: acme                                    # the organization's slug
    client_secret: "${SENTRY_CLIENT_SECRET}"     # the internal integration's Client Secret
    token: "${SENTRY_TOKEN}"                     # a token of the integration, Issue & Event: Read

Datadog Error Tracking: a monitor grouped by issue.id and service notifies a webhook that sends <public_url>/webhooks/datadog the monitor’s IDs and scope, with the secret in a header; kōjō reads the issue and its stack trace with the keys. kojo setup datadog prints what to configure.

alerts:
  datadog:
    site: datadoghq.com                                  # the default; us3.datadoghq.com, datadoghq.eu, ...
    api_key: "${DD_API_KEY}"
    app_key: "${DD_APP_KEY}"                             # an application key with error_tracking_read
    webhook_secret: "${KOJO_DATADOG_WEBHOOK_SECRET}"     # at least 32 bytes: openssl rand -hex 32

alerts.sentry

Key Type Description
base_url string BaseURL is Sentry’s address: https://sentry.io (the default), a region’s (https://de.sentry.io), or a self-hosted install’s.
org string Org is the organization’s slug, as in its URLs. Alerts of another organization are ignored.
client_secret string ClientSecret is the internal integration’s Client Secret: Sentry signs every webhook with it. Deliveries whose Sentry-Hook-Signature does not verify are refused.
token string Token is a token of the internal integration, with Issue & Event: Read. kōjō reads an alert’s issue with it (its status and counts).

alerts.datadog

Key Type Description
site string Site is the organization’s Datadog site: datadoghq.com (the default), us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com or us2.ddog-gov.com. The API is at api..
api_key string APIKey is an API key of the organization, sent as DD-API-KEY.
app_key string AppKey is an application key with the error_tracking_read permission, sent as DD-APPLICATION-KEY. kōjō reads issues with it and writes nothing.
webhook_secret string WebhookSecret is what the webhook sends in its X-Kojo-Webhook-Secret header, at least 32 bytes. Datadog does not sign webhooks: a delivery without this value is refused.
base_url string BaseURL replaces https://api., for a proxy or a test.

models

Key Type Description
gateway string Gateway is “embedded” (Genkit runs in the kōjō process and calls the providers directly) or the base URL of an OpenAI-compatible gateway such as hikyaku (http://hikyaku:8080/v1).
gateway_api_key string GatewayAPIKey authenticates to an external gateway.
tiers map of objects Tiers map a tier name (fast, strong) to a model. Initial values only: managed in the dashboard after install.
budgets object Budgets are initial values only.
embedder object Embedder is the embedding model of team memory. Without one, memory search falls back to Postgres full-text search.
providers object
recordings string Recordings is the directory of recorded responses the mock provider replays. KOJO_LIVE_MODELS=1 ignores it and calls the real providers.

The embedded gateway: Anthropic for both tiers, fallbacks tried in order when a tier’s model fails, prices so that the budgets count, a rate limit per tier, and an embedder for team memory.

models:
  gateway: embedded
  providers:
    anthropic:
      api_key: "${ANTHROPIC_API_KEY}"
    openai:
      api_key: "${OPENAI_API_KEY}"
    googleai:
      api_key: "${GEMINI_API_KEY}"
  tiers:
    fast:
      provider: anthropic
      model: claude-haiku-5-5
      price:
        input_per_mtok: 0.10
        output_per_mtok: 0.50
      requests_per_minute: 120
      fallbacks:
        - provider: openai
          model: gpt-6.2-sol
    strong:
      provider: anthropic
      model: claude-opus-5-5
      price:
        input_per_mtok: 4
        output_per_mtok: 20
      requests_per_minute: 30
      fallbacks:
        - provider: anthropic
          model: claude-sonnet-5-5
        - provider: openai
          model: gpt-6.2-astra
  budgets:
    per_session_usd: 10
    per_day_usd: 200
  embedder:
    provider: googleai
    model: gemini-embedding-2

Azure OpenAI or Microsoft Foundry through the v1 API. A tier’s model is the name you gave a deployment, here deployments of gpt-6.2-sol, gpt-6.2-astra and text-embedding-3-large. Leave out api_key to sign in with Microsoft Entra ID instead (a managed identity, AKS workload identity, a service principal).

models:
  gateway: embedded
  providers:
    azure:
      endpoint: https://acme-ai.openai.azure.com
      api_key: "${AZURE_OPENAI_API_KEY}"
  tiers:
    fast:
      provider: azure
      model: kojo-fast
    strong:
      provider: azure
      model: kojo-strong
  budgets:
    per_session_usd: 10
    per_day_usd: 200
  embedder:
    provider: azure
    model: kojo-embeddings

Amazon Bedrock through the Converse API. There is no AWS key here: credentials come from the AWS SDK’s default chain (environment, shared config files, EKS IRSA or Pod Identity, the instance role). A model is a Bedrock inference profile ID: Anthropic’s models need one, such as us.anthropic.claude-opus-5-5.

models:
  gateway: embedded
  providers:
    bedrock:
      region: us-east-1
  tiers:
    fast:
      provider: bedrock
      model: us.anthropic.claude-haiku-5-5
    strong:
      provider: bedrock
      model: us.anthropic.claude-opus-5-5
      fallbacks:
        - provider: bedrock
          model: us.anthropic.claude-sonnet-5-5
  budgets:
    per_session_usd: 10
    per_day_usd: 200
  embedder:
    provider: bedrock
    model: amazon.titan-embed-text-v2:0

An external OpenAI-compatible gateway. It routes on the model name alone, so a tier names no provider.

models:
  gateway: http://hikyaku:8080/v1
  gateway_api_key: "${MODEL_GATEWAY_API_KEY}"
  tiers:
    fast:
      model: claude-haiku-5-5
    strong:
      model: claude-opus-5-5
      fallbacks:
        - model: claude-sonnet-5-5
  budgets:
    per_session_usd: 10
    per_day_usd: 200

Gemini on Vertex AI, with Application Default Credentials: a key file named by GOOGLE_APPLICATION_CREDENTIALS, a gcloud login, or GKE Workload Identity. No key is in this file.

models:
  gateway: embedded
  providers:
    vertexai:
      project: acme-models
      location: global
  tiers:
    fast:
      provider: vertexai
      model: gemini-4-hydrogen
    strong:
      provider: vertexai
      model: gemini-4-carbon
  budgets:
    per_session_usd: 10
    per_day_usd: 200
  embedder:
    provider: vertexai
    model: gemini-embedding-2

models.tiers

Key Type Description
provider string
model string
fallbacks list of objects Fallbacks are tried in order when the tier’s model fails.
price object Price is what the model costs, in USD per million tokens. kōjō ships no price table: without a price a tier’s calls cost 0 and the USD budgets cannot bound them (kojo doctor warns). The tier’s fallbacks are priced the same.
requests_per_minute integer RequestsPerMinute rate-limits the tier, per kōjō replica. Zero means no limit.

models.tiers.fallbacks

Key Type Description
provider string Provider is anthropic, openai, googleai, vertexai, azure, bedrock, openrouter, ollama or mock. Anything else (vLLM, LiteLLM) is reached through the openai provider’s base_url or an external gateway.
model string Model is the provider’s model ID. With azure it is the name of a deployment, not of a model.

models.tiers.price

Key Type Description
input_per_mtok number
output_per_mtok number

models.budgets

Key Type Description
per_session_usd number
per_day_usd number
per_month_usd number PerMonthUSD caps the whole install’s spend since the first of the calendar month, 00:00 UTC.

models.embedder

Key Type Description
provider string Provider is anthropic, openai, googleai, vertexai, azure, bedrock, openrouter, ollama or mock. Anything else (vLLM, LiteLLM) is reached through the openai provider’s base_url or an external gateway.
model string Model is the provider’s model ID. With azure it is the name of a deployment, not of a model.

models.providers

Key Type Description
anthropic object
openai object
googleai object GoogleAI is Gemini through the Gemini API, with an API key.
vertexai object VertexAI is Gemini through Google Cloud’s Vertex AI, with Google Cloud credentials.
azure object Azure is Azure OpenAI or Microsoft Foundry.
bedrock object Bedrock is Amazon Bedrock.
openrouter object
ollama object

models.providers.anthropic

Key Type Description
api_key string

models.providers.openai

Key Type Description
api_key string
base_url string

models.providers.googleai

Key Type Description
api_key string

models.providers.vertexai

Key Type Description
project string Project is the Google Cloud project ID. Default GOOGLE_CLOUD_PROJECT.
location string Location is a region (us-central1), a multi-region (us, eu) or global. Default GOOGLE_CLOUD_LOCATION, then GOOGLE_CLOUD_REGION.
base_url string BaseURL replaces the endpoint derived from the location, such as a Private Service Connect endpoint. Requests keep the project and location in their path.

models.providers.azure

Key Type Description
endpoint string Endpoint is the resource’s endpoint, such as https://acme.openai.azure.com (Azure OpenAI) or https://acme.services.ai.azure.com (Microsoft Foundry). Default AZURE_OPENAI_ENDPOINT.
api_key string APIKey is a key of the resource. Default AZURE_OPENAI_API_KEY. Without one, kōjō uses Entra ID.

models.providers.bedrock

Key Type Description
region string Region is the AWS region, such as us-east-1. Default AWS_REGION, then AWS_DEFAULT_REGION.
profile string Profile names a profile of the shared AWS config files. Default AWS_PROFILE, then the default profile.
endpoint string Endpoint replaces the region’s Bedrock Runtime endpoint, such as a VPC interface endpoint.

models.providers.openrouter

Key Type Description
api_key string

models.providers.ollama

Key Type Description
url string URL defaults to http://localhost:11434.

sandbox

Key Type Description
driver string Driver is sbx, k8s or e2b. docker and fake exist for development and need dev: true.
sbx object
k8s object
e2b object
docker object
proxy object
ttl string TTL is how long a sandbox may live. Default 4h. A question to open a pull request (merge policy ask) closes no later than 30 minutes before the sandbox that holds the change expires; without an answer the change becomes a draft.
image string Image is the sandbox image of kits that name none. Default: the kojo-toolchain image of this release.
max_resources object MaxResources is the most CPU, memory and disk any kit gets, in Kubernetes quantity syntax ({cpu: “2”, memory: 4Gi, disk: 20Gi}). A kit that asks for more gets this much instead, and the driver logs it; a kit that asks for less, or names no quantity, is unchanged. It fits kits to smaller machines: the built-in kits ask for up to 8 CPUs and 16Gi. Empty: no cap. The docker driver also lowers a request to what the Docker daemon has; the e2b driver sends no kit resources.

Docker Sandboxes on a single VM. driver: sbx alone uses the sbx on the PATH and the default kits directory; the other keys override the defaults.

sandbox:
  driver: sbx
  sbx:
    binary: /usr/local/bin/sbx
    kits_dir: /var/lib/kojo/sbx-kits
  ttl: 2h

An E2B-compatible service (E2B Cloud here): every session in a microVM the service runs, created from a template of your own, with kojo-proxy at a public address as the only destination a sandbox may connect to.

sandbox:
  driver: e2b
  e2b:
    api_key: "${E2B_API_KEY}"
    template: kojo-toolchain
  proxy:
    listen: ":3128"
    advertise_url: http://203.0.113.7:3128
  ttl: 1h

Kubernetes Agent Sandbox with Kata Containers, two warm pods per sandbox template, kojo-proxy as a separate deployment of several replicas, and an image of your own for kits that name none.

sandbox:
  driver: k8s
  k8s:
    namespace: kojo-sandboxes
    runtime_class: kata
    warm_pool_size: 2
    storage_class: fast-ssd
  proxy:
    mode: remote
    advertise_url: http://kojo-proxy.kojo.svc:3128
    # A headless Service: every address it resolves to is one replica.
    admin_url: http://kojo-proxy-admin.kojo.svc:3129
    admin_discovery: dns
    admin_token: "${KOJO_PROXY_ADMIN_TOKEN}"
    ca_cert_file: /var/run/kojo/proxy-ca/tls.crt
    ca_key_file: /var/run/kojo/proxy-ca/tls.key
  ttl: 4h
  image: registry.example.com/acme/toolchain:1.4.0

Development only: sandboxes are plain containers, which the docker driver refuses without dev: true. A separate kojo proxy container is the only way out of the sandbox network, and allow_private lets it reach a forge on a private address.

dev: true

sandbox:
  driver: docker
  docker:
    network: kojo-dev-sandbox
  proxy:
    mode: remote
    advertise_url: http://kojo-proxy:3128
    admin_url: http://kojo-proxy:3129
    admin_token: "${KOJO_PROXY_ADMIN_TOKEN}"
    allow_private: true
  ttl: 1h

sandbox.sbx

Key Type Description
binary string Binary is the sbx CLI. Default “sbx” on PATH.
kits_dir string KitsDir is where kōjō writes the kit it generates per skill.

sandbox.k8s

Key Type Description
namespace string Namespace sandboxes run in. Default: kōjō’s own namespace.
runtime_class string RuntimeClass is kata, gvisor, or a cluster-specific name.
warm_pool_size integer WarmPoolSize is the number of pre-warmed pods per template.
proxy_image string ProxyImage records the image of kojo-proxy. The binary does not read it: the Helm chart deploys the proxy and writes its image here so the rendered config says what runs.
kubeconfig string Kubeconfig is used outside a cluster. Empty means in-cluster config.
storage_class string
unschedulable_timeout string UnschedulableTimeout is how long a sandbox pod may stay unschedulable (no node has room for its requests) before creating the sandbox fails with the scheduler’s reason. It is the time a cluster autoscaler gets to add a node. Default 2m. Starting a sandbox has 5 minutes in all, so a longer value waits at most that long.

sandbox.e2b

Key Type Description
api_key string APIKey authenticates to the service.
api_url string APIURL is the service’s control API. Default https://api..
domain string Domain is where sandboxes are reachable (-.). Default e2b.app.
sandbox_url string SandboxURL is one fixed URL for every sandbox, for a service whose sandbox proxy routes by header instead of by host name (CubeSandbox without a wildcard domain). Default: https://-..
template string Template is the sandbox template used when a skill’s kit names no image and sandbox.image is not set. On this driver a kit’s image is a template name or ID.

sandbox.docker

Key Type Description
binary string Binary is the docker CLI. Default “docker” on PATH.
network string Network is the Docker network sandboxes join. kōjō creates an internal one (no route out except the proxy) when empty.

sandbox.proxy

Key Type Description
mode string Mode is embedded (the proxy runs in the kōjō process) or remote (a separate kojo proxy deployment). Default: embedded, and remote for the k8s driver.
listen string Listen is the address sandboxes connect to. Default “:3128”.
advertise_url string AdvertiseURL is the proxy’s address as sandboxes see it (http://kojo-proxy.kojo.svc:3128).
admin_url string AdminURL is the remote proxy’s admin API (http://kojo-proxy:3129). It is one replica, unless admin_discovery is dns.
admin_discovery string AdminDiscovery is how kōjō finds the proxy’s replicas. Empty: one replica at admin_url, or the replicas of admin_urls. dns: every address the host of admin_url resolves to is a replica, resolved again every 5 seconds; on Kubernetes, a headless Service that publishes replicas before they are ready, as the Helm chart’s proxy-admin Service does. Several replicas need ca_cert_file and ca_key_file.
admin_urls list of strings AdminURLs are the admin APIs of several replicas, instead of admin_url, for replicas at fixed addresses.
sync_timeout string SyncTimeout is how long a kojo proxy replica waits, after it starts, for a kōjō server to send it the sandbox policies before it reports ready on /readyz anyway. Until a kōjō server has synced it, a replica is not ready and takes no sandbox traffic. Default 30s.
admin_listen string AdminListen is the address of the admin API in kojo proxy. Default “:3129”.
admin_token string AdminToken authenticates the core to the admin API.
ca_cert_file string CACertFile and CAKeyFile hold the CA that signs the certificates of hosts the proxy injects credentials on. Generated when empty.
ca_key_file string
allow_private boolean AllowPrivate lets sandboxes reach every allowlisted host on loopback, link-local and private addresses. It is off by default, which stops a sandbox from using the proxy to reach the cluster’s or the cloud’s internal services. For a forge on a private network, name it in PrivateHosts instead.
private_hosts list of strings PrivateHosts are the hostnames, or “*.domain” patterns, that may resolve to loopback, link-local and private addresses: a forge or a registry on a private network. Every other allowlisted host must still resolve to public addresses only. A host here is reachable only when a sandbox’s allowlist names it too.
upstream_ca_file string UpstreamCAFile holds extra root certificates (PEM) the proxy trusts when it connects to a host it injects credentials on: a forge with a private CA.
max_conns_per_sandbox integer MaxConnsPerSandbox bounds what one sandbox has open through the proxy at once: tunnels, intercepted connections and plain HTTP requests in flight. One more gets HTTP 429, so one sandbox cannot take the connections of the process the proxy runs in from the others. Default 64.
idle_timeout string IdleTimeout closes a tunnel through which nothing has gone either way for that long, and a sandbox’s keep-alive connection to the proxy that sends no request for that long. Default 5m.

sandbox.max_resources

Key Type Description
cpu string CPU in cores (“4”, “0.5”) or millicores (“500m”).
memory string Memory in bytes with a binary or decimal suffix (“8Gi”, “512Mi”).
disk string Disk is the size of the workspace (“40Gi”).

defaults

Key Type Description
merge_policy string MergePolicy is draft_only (default), ask or auto_merge.
skills_repo string SkillsRepo is the shared repository of org-level skills, as forge/owner/name. It is used when the org’s skills are edited in git (seed.skills_source.org).

The org’s first merge policy asks for an approval in chat before a pull request is opened ready for review. skills_repo is the repository of org-level skills, used when seed.skills_source.org is git.

defaults:
  merge_policy: ask
  skills_repo: github/acme/factory-skills

seed

Key Type Description
skills_source object
activation object

Org-level skills are edited in git, in the repository defaults.skills_repo names, and activating a skill draft needs an eval with a pass rate of at least 0.7.

seed:
  skills_source:
    org: git
    repo: git
  activation:
    require_eval: true
    min_eval_pass_rate: 0.7

defaults:
  skills_repo: github/acme/factory-skills

seed.skills_source

Key Type Description
org string Org is dashboard (default) or git.
repo string Repo is git (default) or dashboard.

seed.activation

Key Type Description
require_eval boolean
min_eval_pass_rate number

telemetry

Key Type Description
otlp_endpoint string OTLPEndpoint is the OTLP/HTTP endpoint traces are exported to: a base URL (http://collector:4318, which gets /v1/traces) or a full URL. The standard OTEL_EXPORTER_OTLP_ENDPOINT variable works too.
service_name string ServiceName defaults to kojo.

Traces go to an OpenTelemetry collector over OTLP/HTTP, under a service name of their own.

telemetry:
  otlp_endpoint: http://otel-collector.observability.svc:4318
  service_name: kojo-production
Scroll to move. + - zoom, 0 fit, Esc close.100%