{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xavidop.github.io/kojo/schema/kojo.schema.json",
  "$ref": "#/$defs/Boot",
  "$defs": {
    "APIToken": {
      "properties": {
        "name": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "role": {
          "type": "string",
          "description": "Role is viewer, skill:edit, operator or admin. Default operator."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "APIToken is a static bearer token."
    },
    "Activation": {
      "properties": {
        "require_eval": {
          "type": "boolean"
        },
        "min_eval_pass_rate": {
          "type": "number"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Activation gates a skill going live."
    },
    "Alerts": {
      "properties": {
        "sentry": {
          "$ref": "#/$defs/Sentry"
        },
        "datadog": {
          "$ref": "#/$defs/Datadog"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Alerts are the sources of production alerts kōjō takes work from: an alert rule (a Sentry issue alert, a Datadog Error Tracking monitor) that fires for an error starts a session on the repository the repos object maps the error's project or service to (alerts), which reproduces the error and fixes it in a draft pull request."
    },
    "Asana": {
      "properties": {
        "token": {
          "type": "string",
          "description": "Token is a personal access token of kōjō's Asana user, or a service\naccount's token."
        },
        "webhook_secrets": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "WebhookSecrets are the secrets of kōjō's webhooks, one per project\n(Asana gives each webhook its own, once, when it is created; kojo\nsetup asana writes them to a file). A delivery signed with none of\nthem is refused."
        },
        "status": {
          "$ref": "#/$defs/TrackerStatus",
          "description": "Status moves a task to the section of that name in its project."
        },
        "users": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Users maps an Asana user ID (gid) to the email of that person's entry\nin the rbac object. Asana does not say whether the address it reports\nwas verified, so this is how a person gets a role; anyone else's\nrequests are read-only."
        },
        "api_url": {
          "type": "string",
          "description": "APIURL overrides https://app.asana.com/api/1.0 (a mock in tests)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Asana is an Asana workspace, reached with the token of the Asana user or service account kōjō acts as."
    },
    "Auth": {
      "properties": {
        "oidc": {
          "$ref": "#/$defs/OIDC"
        },
        "tokens": {
          "items": {
            "$ref": "#/$defs/APIToken"
          },
          "type": "array",
          "description": "Tokens are static API tokens for the CLI, CI and MCP clients."
        },
        "admins": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Admins are the emails written to the rbac object with the admin role\non the first start against an empty database. After that, roles are\nmanaged in the dashboard and a change here has no effect."
        },
        "session_secret": {
          "type": "string",
          "description": "SessionSecret signs the dashboard's session cookie. When empty a\nrandom one is generated at start, which signs everyone out on restart\nand does not work with more than one replica."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Auth configures who may use the dashboard and the API."
    },
    "Azure": {
      "properties": {
        "endpoint": {
          "type": "string",
          "description": "Endpoint is the resource's endpoint, such as\nhttps://acme.openai.azure.com (Azure OpenAI) or\nhttps://acme.services.ai.azure.com (Microsoft Foundry). Default\nAZURE_OPENAI_ENDPOINT."
        },
        "api_key": {
          "type": "string",
          "description": "APIKey is a key of the resource. Default AZURE_OPENAI_API_KEY.\nWithout one, kōjō uses Entra ID."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Azure is Azure OpenAI or Microsoft Foundry, through their OpenAI-compatible v1 API (\u003cendpoint\u003e/openai/v1/)."
    },
    "Bedrock": {
      "properties": {
        "region": {
          "type": "string",
          "description": "Region is the AWS region, such as us-east-1. Default AWS_REGION, then\nAWS_DEFAULT_REGION."
        },
        "profile": {
          "type": "string",
          "description": "Profile names a profile of the shared AWS config files. Default\nAWS_PROFILE, then the default profile."
        },
        "endpoint": {
          "type": "string",
          "description": "Endpoint replaces the region's Bedrock Runtime endpoint, such as a VPC\ninterface endpoint."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Bedrock is Amazon Bedrock, through its Converse API."
    },
    "Bitbucket": {
      "properties": {
        "workspace": {
          "type": "string",
          "description": "Workspace is the workspace ID (slug) whose repositories kōjō lists."
        },
        "token": {
          "type": "string",
          "description": "Token is an API token with scopes of the bot's Atlassian account."
        },
        "webhook_secret": {
          "type": "string",
          "description": "WebhookSecret is the secret of the repositories' webhooks\n(X-Hub-Signature)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Bitbucket is Bitbucket Cloud reached with an API token of the account kōjō acts as."
    },
    "Boot": {
      "properties": {
        "dev": {
          "type": "boolean",
          "description": "Dev turns on development mode: it allows the insecure sandbox drivers\n(docker, fake), runc on Kubernetes and a dashboard without OIDC. kojo\ndoctor fails a production check while it is set."
        },
        "server": {
          "$ref": "#/$defs/Server"
        },
        "database": {
          "$ref": "#/$defs/Database"
        },
        "forges": {
          "$ref": "#/$defs/Forges"
        },
        "chat": {
          "$ref": "#/$defs/Chat"
        },
        "trackers": {
          "$ref": "#/$defs/Trackers",
          "description": "Trackers are the issue trackers kōjō takes work from: Linear, Jira\nCloud and Asana."
        },
        "alerts": {
          "$ref": "#/$defs/Alerts",
          "description": "Alerts are the sources of production alerts kōjō takes work from:\nSentry and Datadog Error Tracking."
        },
        "models": {
          "$ref": "#/$defs/Models"
        },
        "sandbox": {
          "$ref": "#/$defs/Sandbox"
        },
        "defaults": {
          "$ref": "#/$defs/Defaults",
          "description": "Defaults are initial values only: after install they are managed in\nthe dashboard and stored as config revisions."
        },
        "seed": {
          "$ref": "#/$defs/Seed",
          "description": "Seed is only read on the first start against an empty database."
        },
        "telemetry": {
          "$ref": "#/$defs/Telemetry"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Boot is kojo.yaml."
    },
    "Budgets": {
      "properties": {
        "per_session_usd": {
          "type": "number"
        },
        "per_day_usd": {
          "type": "number"
        },
        "per_month_usd": {
          "type": "number",
          "description": "PerMonthUSD caps the whole install's spend since the first of the\ncalendar month, 00:00 UTC."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Budgets are spend caps."
    },
    "Chat": {
      "properties": {
        "slack": {
          "$ref": "#/$defs/Slack"
        },
        "teams": {
          "$ref": "#/$defs/Teams"
        },
        "discord": {
          "$ref": "#/$defs/Discord"
        },
        "mattermost": {
          "$ref": "#/$defs/Mattermost"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Chat are the chat surfaces."
    },
    "Database": {
      "properties": {
        "url": {
          "type": "string"
        },
        "max_conns": {
          "type": "integer",
          "description": "MaxConns is the size of the connection pool: 0 for pgx's default\n(the larger of 4 and the number of CPUs), otherwise at least 2,\nbecause a campaign update holds one connection while it uses another."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Database is the Postgres connection."
    },
    "Datadog": {
      "properties": {
        "site": {
          "type": "string",
          "description": "Site is the organization's Datadog site: datadoghq.com (the\ndefault), us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu,\nap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com,\nddog-gov.com or us2.ddog-gov.com. The API is at api.\u003csite\u003e."
        },
        "api_key": {
          "type": "string",
          "description": "APIKey is an API key of the organization, sent as DD-API-KEY."
        },
        "app_key": {
          "type": "string",
          "description": "AppKey is an application key with the error_tracking_read\npermission, sent as DD-APPLICATION-KEY. kōjō reads issues with it\nand writes nothing."
        },
        "webhook_secret": {
          "type": "string",
          "description": "WebhookSecret is what the webhook sends in its\nX-Kojo-Webhook-Secret header, at least 32 bytes. Datadog does not\nsign webhooks: a delivery without this value is refused."
        },
        "base_url": {
          "type": "string",
          "description": "BaseURL replaces https://api.\u003csite\u003e, for a proxy or a test."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Datadog is a Datadog organization's Error Tracking, on one of Datadog's sites."
    },
    "Defaults": {
      "properties": {
        "merge_policy": {
          "type": "string",
          "description": "MergePolicy is draft_only (default), ask or auto_merge."
        },
        "skills_repo": {
          "type": "string",
          "description": "SkillsRepo is the shared repository of org-level skills, as\nforge/owner/name. It is used when the org's skills are edited in git\n(seed.skills_source.org)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Defaults seed the runtime settings."
    },
    "Discord": {
      "properties": {
        "bot_token": {
          "type": "string",
          "description": "BotToken is the bot's token from the Discord developer portal."
        },
        "application_id": {
          "type": "string",
          "description": "ApplicationID is the application the bot belongs to. When set, kojo\ndoctor checks that the token is that application's."
        },
        "guild_id": {
          "type": "string",
          "description": "GuildID is the ID of the server kōjō serves. Messages from other\nservers are ignored, and a direct message is only taken from a\nmember of this server."
        },
        "roles": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Roles maps the ID of a role of that server to a kōjō role: viewer,\nskill:edit, operator or admin. Discord gives a bot no email, so this\nis how a sender gets a role; someone without a mapped role is\nanswered read-only. The server's own ID stands for @everyone."
        },
        "users": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Users maps a Discord user ID to the email of that person's entry in\nthe rbac object, for people whose roles are managed there. Those\nroles add to the ones from Roles."
        },
        "api_url": {
          "type": "string",
          "description": "APIURL overrides https://discord.com/api (a mock in tests)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Discord is the Discord bot."
    },
    "DockerDriver": {
      "properties": {
        "binary": {
          "type": "string",
          "description": "Binary is the docker CLI. Default \"docker\" on PATH."
        },
        "network": {
          "type": "string",
          "description": "Network is the Docker network sandboxes join. kōjō creates an internal\none (no route out except the proxy) when empty."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "DockerDriver runs sandboxes as plain containers."
    },
    "E2BDriver": {
      "properties": {
        "api_key": {
          "type": "string",
          "description": "APIKey authenticates to the service."
        },
        "api_url": {
          "type": "string",
          "description": "APIURL is the service's control API. Default https://api.\u003cdomain\u003e."
        },
        "domain": {
          "type": "string",
          "description": "Domain is where sandboxes are reachable (\u003cport\u003e-\u003cid\u003e.\u003cdomain\u003e).\nDefault e2b.app."
        },
        "sandbox_url": {
          "type": "string",
          "description": "SandboxURL is one fixed URL for every sandbox, for a service whose\nsandbox proxy routes by header instead of by host name (CubeSandbox\nwithout a wildcard domain). Default: https://\u003cport\u003e-\u003cid\u003e.\u003cdomain\u003e."
        },
        "template": {
          "type": "string",
          "description": "Template is the sandbox template used when a skill's kit names no\nimage and sandbox.image is not set. On this driver a kit's image is a\ntemplate name or ID."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "E2BDriver runs sandboxes on an E2B-compatible service: E2B Cloud, a self-hosted E2B, or CubeSandbox."
    },
    "Forgejo": {
      "properties": {
        "base_url": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "webhook_secret": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Forgejo is a Forgejo or Gitea instance reached with an access token."
    },
    "Forges": {
      "properties": {
        "github": {
          "$ref": "#/$defs/GitHub"
        },
        "gitlab": {
          "$ref": "#/$defs/GitLab"
        },
        "forgejo": {
          "$ref": "#/$defs/Forgejo"
        },
        "bitbucket": {
          "$ref": "#/$defs/Bitbucket"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Forges are the code forges kōjō is connected to."
    },
    "GitHub": {
      "properties": {
        "app_id": {
          "type": "string"
        },
        "private_key_file": {
          "type": "string",
          "description": "PrivateKeyFile is the App's PEM private key. PrivateKey holds the PEM\nitself instead (from an environment variable)."
        },
        "private_key": {
          "type": "string"
        },
        "webhook_secret": {
          "type": "string"
        },
        "base_url": {
          "type": "string",
          "description": "BaseURL is the API root of a GitHub Enterprise Server\n(https://ghe.example.com/api/v3). Empty means github.com."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "GitHub is a GitHub App (github.com or Enterprise Server)."
    },
    "GitLab": {
      "properties": {
        "base_url": {
          "type": "string",
          "description": "BaseURL defaults to https://gitlab.com."
        },
        "token": {
          "type": "string"
        },
        "webhook_secret": {
          "type": "string",
          "description": "WebhookSecret is the webhook's secret token (X-Gitlab-Token)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "GitLab is a GitLab instance reached with a project or group access token."
    },
    "Jira": {
      "properties": {
        "base_url": {
          "type": "string",
          "description": "BaseURL is the site's address, such as https://acme.atlassian.net."
        },
        "email": {
          "type": "string",
          "description": "Email is the address of kōjō's Atlassian account, which signs in\nwith APIToken."
        },
        "api_token": {
          "type": "string",
          "description": "APIToken is an API token of that account (without scopes: a scoped\ntoken only works through api.atlassian.com)."
        },
        "webhook_secret": {
          "type": "string",
          "description": "WebhookSecret is the secret of the webhook (Jira settings, System,\nWebHooks). Jira signs each delivery with it (X-Hub-Signature);\ndeliveries that are not signed with it are refused."
        },
        "labels": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Labels start work when added to an issue, or when an issue is\ncreated with one."
        },
        "status": {
          "$ref": "#/$defs/TrackerStatus",
          "description": "Status moves an issue through its workflow: the transition to the\nstatus of that name is made."
        },
        "users": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Users maps an Atlassian account ID to the email of that person's\nentry in the rbac object. Jira gives a bot no email it can rely on,\nso this is how a person gets a role; anyone else's requests are\nread-only."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Jira is a Jira Cloud site, reached with the API token of the Atlassian account kōjō acts as."
    },
    "K8sDriver": {
      "properties": {
        "namespace": {
          "type": "string",
          "description": "Namespace sandboxes run in. Default: kōjō's own namespace."
        },
        "runtime_class": {
          "type": "string",
          "description": "RuntimeClass is kata, gvisor, or a cluster-specific name."
        },
        "warm_pool_size": {
          "type": "integer",
          "description": "WarmPoolSize is the number of pre-warmed pods per template."
        },
        "proxy_image": {
          "type": "string",
          "description": "ProxyImage records the image of kojo-proxy. The binary does not read\nit: the Helm chart deploys the proxy and writes its image here so the\nrendered config says what runs."
        },
        "kubeconfig": {
          "type": "string",
          "description": "Kubeconfig is used outside a cluster. Empty means in-cluster config."
        },
        "storage_class": {
          "type": "string"
        },
        "unschedulable_timeout": {
          "type": "string",
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$",
          "description": "UnschedulableTimeout is how long a sandbox pod may stay unschedulable\n(no node has room for its requests) before creating the sandbox fails\nwith the scheduler's reason. It is the time a cluster autoscaler gets\nto add a node. Default 2m. Starting a sandbox has 5 minutes in all, so\na longer value waits at most that long."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "K8sDriver is Kubernetes Agent Sandbox."
    },
    "Linear": {
      "properties": {
        "api_key": {
          "type": "string",
          "description": "APIKey is a personal API key of kōjō's Linear user (Settings,\nSecurity \u0026 access). Tickets are assigned to and mentions name that\nuser."
        },
        "webhook_secret": {
          "type": "string",
          "description": "WebhookSecret is the signing secret Linear shows on the webhook's\npage. Deliveries whose Linear-Signature does not verify are refused."
        },
        "labels": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Labels start work when added to an issue, or when an issue is\ncreated with one."
        },
        "status": {
          "$ref": "#/$defs/TrackerStatus",
          "description": "Status moves an issue through its team's workflow states, by name."
        },
        "users": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Users maps a Linear user ID to the email of that person's entry in\nthe rbac object, for a person whose Linear address is not that one.\nEveryone else is known by the email Linear reports."
        },
        "api_url": {
          "type": "string",
          "description": "APIURL overrides https://api.linear.app/graphql (a mock in tests)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Linear is a Linear workspace, reached with the API key of the Linear user kōjō acts as."
    },
    "Mattermost": {
      "properties": {
        "url": {
          "type": "string",
          "description": "URL is the server's base URL (https://chat.example.com)."
        },
        "token": {
          "type": "string",
          "description": "Token is the bot account's access token."
        },
        "action_secret": {
          "type": "string",
          "description": "ActionSecret signs the buttons kōjō posts, so a click can be told\nfrom a forged request. Generated at start when empty, which does not\nsurvive a restart or work with several replicas."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Mattermost is a bot account on a Mattermost server."
    },
    "ModelRef": {
      "properties": {
        "provider": {
          "type": "string",
          "description": "Provider is anthropic, openai, googleai, vertexai, azure, bedrock,\nopenrouter, ollama or mock. Anything else (vLLM, LiteLLM) is reached\nthrough the openai provider's base_url or an external gateway."
        },
        "model": {
          "type": "string",
          "description": "Model is the provider's model ID. With azure it is the name of a\ndeployment, not of a model."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ModelRef names a model on a provider."
    },
    "Models": {
      "properties": {
        "gateway": {
          "type": "string",
          "description": "Gateway is \"embedded\" (Genkit runs in the kōjō process and calls the\nproviders directly) or the base URL of an OpenAI-compatible gateway\nsuch as hikyaku (http://hikyaku:8080/v1)."
        },
        "gateway_api_key": {
          "type": "string",
          "description": "GatewayAPIKey authenticates to an external gateway."
        },
        "tiers": {
          "additionalProperties": {
            "$ref": "#/$defs/Tier"
          },
          "type": "object",
          "description": "Tiers map a tier name (fast, strong) to a model. Initial values only:\nmanaged in the dashboard after install."
        },
        "budgets": {
          "$ref": "#/$defs/Budgets",
          "description": "Budgets are initial values only."
        },
        "embedder": {
          "$ref": "#/$defs/ModelRef",
          "description": "Embedder is the embedding model of team memory. Without one, memory\nsearch falls back to Postgres full-text search."
        },
        "providers": {
          "$ref": "#/$defs/Providers"
        },
        "recordings": {
          "type": "string",
          "description": "Recordings is the directory of recorded responses the mock provider\nreplays. KOJO_LIVE_MODELS=1 ignores it and calls the real providers."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Models is the model gateway."
    },
    "OIDC": {
      "properties": {
        "issuer": {
          "type": "string"
        },
        "client_id": {
          "type": "string"
        },
        "client_secret": {
          "type": "string"
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "allowed_domains": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "AllowedDomains restricts sign-in to these email domains."
        },
        "trust_unverified_email": {
          "type": "boolean",
          "description": "TrustUnverifiedEmail accepts an ID token that has no email_verified\nclaim, for identity providers that never send it (Microsoft Entra ID\nand AD FS among them). Without it, such a token is refused: a\nprovider that does not vouch for an address may let a person pick\nanyone's, an admin's included. Turn it on only for a provider whose\naddresses your organization assigns. A token whose email_verified is\nfalse is refused either way."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "OIDC is the identity provider of the dashboard."
    },
    "Ollama": {
      "properties": {
        "url": {
          "type": "string",
          "description": "URL defaults to http://localhost:11434."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Ollama is a local Ollama server, for air-gapped installs."
    },
    "OpenAI": {
      "properties": {
        "api_key": {
          "type": "string"
        },
        "base_url": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "OpenAI is OpenAI or any OpenAI-compatible server (vLLM, LiteLLM)."
    },
    "Price": {
      "properties": {
        "input_per_mtok": {
          "type": "number"
        },
        "output_per_mtok": {
          "type": "number"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Price is what a model costs, in USD per million tokens."
    },
    "ProviderKey": {
      "properties": {
        "api_key": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ProviderKey is a provider that only needs an API key."
    },
    "Providers": {
      "properties": {
        "anthropic": {
          "$ref": "#/$defs/ProviderKey"
        },
        "openai": {
          "$ref": "#/$defs/OpenAI"
        },
        "googleai": {
          "$ref": "#/$defs/ProviderKey",
          "description": "GoogleAI is Gemini through the Gemini API, with an API key."
        },
        "vertexai": {
          "$ref": "#/$defs/VertexAI",
          "description": "VertexAI is Gemini through Google Cloud's Vertex AI, with Google\nCloud credentials."
        },
        "azure": {
          "$ref": "#/$defs/Azure",
          "description": "Azure is Azure OpenAI or Microsoft Foundry."
        },
        "bedrock": {
          "$ref": "#/$defs/Bedrock",
          "description": "Bedrock is Amazon Bedrock."
        },
        "openrouter": {
          "$ref": "#/$defs/ProviderKey"
        },
        "ollama": {
          "$ref": "#/$defs/Ollama"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Providers hold per-provider settings."
    },
    "ProxySettings": {
      "properties": {
        "mode": {
          "type": "string",
          "description": "Mode is embedded (the proxy runs in the kōjō process) or remote (a\nseparate `kojo proxy` deployment). Default: embedded, and remote for\nthe k8s driver."
        },
        "listen": {
          "type": "string",
          "description": "Listen is the address sandboxes connect to. Default \":3128\"."
        },
        "advertise_url": {
          "type": "string",
          "description": "AdvertiseURL is the proxy's address as sandboxes see it\n(http://kojo-proxy.kojo.svc:3128)."
        },
        "admin_url": {
          "type": "string",
          "description": "AdminURL is the remote proxy's admin API (http://kojo-proxy:3129). It\nis one replica, unless admin_discovery is dns."
        },
        "admin_discovery": {
          "type": "string",
          "description": "AdminDiscovery is how kōjō finds the proxy's replicas. Empty: one\nreplica at admin_url, or the replicas of admin_urls. dns: every\naddress the host of admin_url resolves to is a replica, resolved again\nevery 5 seconds; on Kubernetes, a headless Service that publishes\nreplicas before they are ready, as the Helm chart's proxy-admin\nService does. Several replicas need ca_cert_file and ca_key_file."
        },
        "admin_urls": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "AdminURLs are the admin APIs of several replicas, instead of\nadmin_url, for replicas at fixed addresses."
        },
        "sync_timeout": {
          "type": "string",
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$",
          "description": "SyncTimeout is how long a `kojo proxy` replica waits, after it\nstarts, for a kōjō server to send it the sandbox policies before it\nreports ready on /readyz anyway. Until a kōjō server has synced it, a\nreplica is not ready and takes no sandbox traffic. Default 30s."
        },
        "admin_listen": {
          "type": "string",
          "description": "AdminListen is the address of the admin API in `kojo proxy`.\nDefault \":3129\"."
        },
        "admin_token": {
          "type": "string",
          "description": "AdminToken authenticates the core to the admin API."
        },
        "ca_cert_file": {
          "type": "string",
          "description": "CACertFile and CAKeyFile hold the CA that signs the certificates of\nhosts the proxy injects credentials on. Generated when empty."
        },
        "ca_key_file": {
          "type": "string"
        },
        "allow_private": {
          "type": "boolean",
          "description": "AllowPrivate lets sandboxes reach every allowlisted host on loopback,\nlink-local and private addresses. It is off by default, which stops a\nsandbox from using the proxy to reach the cluster's or the cloud's\ninternal services. For a forge on a private network, name it in\nPrivateHosts instead."
        },
        "private_hosts": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "PrivateHosts are the hostnames, or \"*.domain\" patterns, that may\nresolve to loopback, link-local and private addresses: a forge or a\nregistry on a private network. Every other allowlisted host must still\nresolve to public addresses only. A host here is reachable only when a\nsandbox's allowlist names it too."
        },
        "upstream_ca_file": {
          "type": "string",
          "description": "UpstreamCAFile holds extra root certificates (PEM) the proxy trusts\nwhen it connects to a host it injects credentials on: a forge with a\nprivate CA."
        },
        "max_conns_per_sandbox": {
          "type": "integer",
          "description": "MaxConnsPerSandbox bounds what one sandbox has open through the proxy\nat once: tunnels, intercepted connections and plain HTTP requests in\nflight. One more gets HTTP 429, so one sandbox cannot take the\nconnections of the process the proxy runs in from the others.\nDefault 64."
        },
        "idle_timeout": {
          "type": "string",
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$",
          "description": "IdleTimeout closes a tunnel through which nothing has gone either way\nfor that long, and a sandbox's keep-alive connection to the proxy\nthat sends no request for that long. Default 5m."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "ProxySettings configure kojo-proxy."
    },
    "Resources": {
      "properties": {
        "cpu": {
          "type": "string",
          "description": "CPU in cores (\"4\", \"0.5\") or millicores (\"500m\")."
        },
        "memory": {
          "type": "string",
          "description": "Memory in bytes with a binary or decimal suffix (\"8Gi\", \"512Mi\")."
        },
        "disk": {
          "type": "string",
          "description": "Disk is the size of the workspace (\"40Gi\")."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Resources are requests, in Kubernetes quantity syntax (\"4\", \"8Gi\")."
    },
    "SBXDriver": {
      "properties": {
        "binary": {
          "type": "string",
          "description": "Binary is the sbx CLI. Default \"sbx\" on PATH."
        },
        "kits_dir": {
          "type": "string",
          "description": "KitsDir is where kōjō writes the kit it generates per skill."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SBXDriver is Docker Sandboxes: one microVM per session."
    },
    "Sandbox": {
      "properties": {
        "driver": {
          "type": "string",
          "description": "Driver is sbx, k8s or e2b. docker and fake exist for development and\nneed dev: true."
        },
        "sbx": {
          "$ref": "#/$defs/SBXDriver"
        },
        "k8s": {
          "$ref": "#/$defs/K8sDriver"
        },
        "e2b": {
          "$ref": "#/$defs/E2BDriver"
        },
        "docker": {
          "$ref": "#/$defs/DockerDriver"
        },
        "proxy": {
          "$ref": "#/$defs/ProxySettings"
        },
        "ttl": {
          "type": "string",
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$",
          "description": "TTL is how long a sandbox may live. Default 4h. A question to open a\npull request (merge policy ask) closes no later than 30 minutes\nbefore the sandbox that holds the change expires; without an answer\nthe change becomes a draft."
        },
        "image": {
          "type": "string",
          "description": "Image is the sandbox image of kits that name none. Default: the\nkojo-toolchain image of this release."
        },
        "max_resources": {
          "$ref": "#/$defs/Resources",
          "description": "MaxResources is the most CPU, memory and disk any kit gets, in\nKubernetes quantity syntax ({cpu: \"2\", memory: 4Gi, disk: 20Gi}). A\nkit that asks for more gets this much instead, and the driver logs\nit; a kit that asks for less, or names no quantity, is unchanged.\nIt fits kits to smaller machines: the built-in kits ask for up to 8\nCPUs and 16Gi. Empty: no cap. The docker driver also lowers a request\nto what the Docker daemon has; the e2b driver sends no kit resources."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Sandbox selects and wires the sandbox driver."
    },
    "Seed": {
      "properties": {
        "skills_source": {
          "$ref": "#/$defs/SkillsSource"
        },
        "activation": {
          "$ref": "#/$defs/Activation"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Seed is the initial runtime config."
    },
    "Sentry": {
      "properties": {
        "base_url": {
          "type": "string",
          "description": "BaseURL is Sentry's address: https://sentry.io (the default), a\nregion's (https://de.sentry.io), or a self-hosted install's."
        },
        "org": {
          "type": "string",
          "description": "Org is the organization's slug, as in its URLs. Alerts of another\norganization are ignored."
        },
        "client_secret": {
          "type": "string",
          "description": "ClientSecret is the internal integration's Client Secret: Sentry\nsigns every webhook with it. Deliveries whose Sentry-Hook-Signature\ndoes not verify are refused."
        },
        "token": {
          "type": "string",
          "description": "Token is a token of the internal integration, with Issue \u0026 Event:\nRead. kōjō reads an alert's issue with it (its status and counts)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Sentry is a Sentry organization (sentry.io or self-hosted), reached through an internal integration of its own."
    },
    "Server": {
      "properties": {
        "public_url": {
          "type": "string",
          "description": "PublicURL is how forges, Slack and browsers reach kōjō."
        },
        "listen": {
          "type": "string",
          "description": "Listen is the address to bind. Default \":8080\"."
        },
        "metrics_listen": {
          "type": "string",
          "description": "MetricsListen is the address /metrics is served on, apart from the\ndashboard, the API and the webhooks, so that putting Listen on a\npublic network does not publish the metrics. \"off\" serves none.\nDefault \"127.0.0.1:9090\"; the Helm chart sets \":9090\"."
        },
        "auth": {
          "$ref": "#/$defs/Auth"
        },
        "workers": {
          "type": "integer",
          "description": "Workers is how many sessions this replica runs at once. Default 4."
        },
        "network_policy": {
          "type": "boolean",
          "description": "NetworkPolicy says whether NetworkPolicies limit who reaches Postgres,\nkojo-proxy's admin port and the metrics port. The Helm chart sets it\nfrom networkPolicy.enabled, and `kojo doctor` warns when it is false.\nUnset, kōjō does not know and doctor does not check."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Server is the HTTP server: dashboard, API, webhooks and MCP."
    },
    "SkillsSource": {
      "properties": {
        "org": {
          "type": "string",
          "description": "Org is dashboard (default) or git."
        },
        "repo": {
          "type": "string",
          "description": "Repo is git (default) or dashboard."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "SkillsSource says where each scope's skills are edited."
    },
    "Slack": {
      "properties": {
        "mode": {
          "type": "string",
          "description": "Mode is socket (no public ingress needed) or http. Default socket."
        },
        "bot_token": {
          "type": "string"
        },
        "app_token": {
          "type": "string",
          "description": "AppToken is the app-level token (xapp-...) Socket Mode needs."
        },
        "signing_secret": {
          "type": "string",
          "description": "SigningSecret verifies requests in http mode."
        },
        "api_url": {
          "type": "string",
          "description": "APIURL overrides https://slack.com/api/ (the Slack mock in dev stacks)."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Slack is the Slack app."
    },
    "Teams": {
      "properties": {
        "app_id": {
          "type": "string",
          "description": "AppID is the bot's Microsoft App ID (the application's client ID)."
        },
        "app_password": {
          "type": "string",
          "description": "AppPassword is the application's client secret."
        },
        "tenant_id": {
          "type": "string",
          "description": "TenantID is the Microsoft Entra tenant of a single-tenant bot\nregistration (its App Tenant ID): the bot gets its token from this\ntenant and serves only this tenant's users. Empty means a\nmulti-tenant registration, which needs allowed_tenants."
        },
        "allowed_tenants": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "AllowedTenants are further tenants whose users may talk to the bot.\nA multi-tenant registration has no tenant_id and must list its\ntenants here: anyone can install a multi-tenant bot, and kōjō trusts\nthe email a tenant reports for a user."
        },
        "text_format": {
          "type": "string",
          "description": "TextFormat is how messages are sent: extendedmarkdown (default;\nheadings, lists, code blocks and tables) or markdown, Teams' older\nformat, in which kōjō sends tables as code blocks."
        },
        "service_url": {
          "type": "string",
          "description": "ServiceURL is the Bot Connector endpoint for messages that answer\nno incoming one, such as a schedule's notify. Default\nhttps://smba.trafficmanager.net/teams/ (the public cloud). kōjō\nsends the bot's token only to the Teams endpoints it knows and to\nthis host."
        },
        "login_url": {
          "type": "string",
          "description": "LoginURL overrides https://login.microsoftonline.com, where the bot\ngets its access token (sovereign clouds, a mock in tests)."
        },
        "token_scope": {
          "type": "string",
          "description": "TokenScope overrides https://api.botframework.com/.default."
        },
        "openid_metadata_url": {
          "type": "string",
          "description": "OpenIDMetadataURL overrides\nhttps://login.botframework.com/v1/.well-known/openidconfiguration,\nthe document that names the keys incoming requests are signed with."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Teams is the Microsoft Teams bot: an Azure Bot registration whose messaging endpoint is \u003cpublic_url\u003e/teams/messages."
    },
    "Telemetry": {
      "properties": {
        "otlp_endpoint": {
          "type": "string",
          "description": "OTLPEndpoint is the OTLP/HTTP endpoint traces are exported to: a base\nURL (http://collector:4318, which gets /v1/traces) or a full URL. The\nstandard OTEL_EXPORTER_OTLP_ENDPOINT variable works too."
        },
        "service_name": {
          "type": "string",
          "description": "ServiceName defaults to kojo."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Telemetry configures traces and metrics."
    },
    "Tier": {
      "properties": {
        "provider": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "fallbacks": {
          "items": {
            "$ref": "#/$defs/ModelRef"
          },
          "type": "array",
          "description": "Fallbacks are tried in order when the tier's model fails."
        },
        "price": {
          "$ref": "#/$defs/Price",
          "description": "Price is what the model costs, in USD per million tokens. kōjō ships\nno price table: without a price a tier's calls cost 0 and the USD\nbudgets cannot bound them (kojo doctor warns). The tier's fallbacks\nare priced the same."
        },
        "requests_per_minute": {
          "type": "integer",
          "description": "RequestsPerMinute rate-limits the tier, per kōjō replica. Zero means\nno limit."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Tier is one model tier."
    },
    "TrackerStatus": {
      "properties": {
        "started": {
          "type": "string",
          "description": "Started is the status a ticket moves to when a session that may\nchange code is queued for it (\"In Progress\")."
        },
        "review": {
          "type": "string",
          "description": "Review is the status a ticket moves to when its session opens a pull\nrequest (\"In Review\")."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "TrackerStatus names the statuses a ticket is moved to as its session goes on."
    },
    "Trackers": {
      "properties": {
        "linear": {
          "$ref": "#/$defs/Linear"
        },
        "jira": {
          "$ref": "#/$defs/Jira"
        },
        "asana": {
          "$ref": "#/$defs/Asana"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "Trackers are the issue trackers kōjō takes work from: a ticket assigned to kōjō's account, a comment that mentions it, or a label added to a ticket starts a session on the repository the ticket maps to (the repos object's tickets), and the result is posted on the ticket."
    },
    "VertexAI": {
      "properties": {
        "project": {
          "type": "string",
          "description": "Project is the Google Cloud project ID. Default GOOGLE_CLOUD_PROJECT."
        },
        "location": {
          "type": "string",
          "description": "Location is a region (us-central1), a multi-region (us, eu) or global.\nDefault GOOGLE_CLOUD_LOCATION, then GOOGLE_CLOUD_REGION."
        },
        "base_url": {
          "type": "string",
          "description": "BaseURL replaces the endpoint derived from the location, such as a\nPrivate Service Connect endpoint. Requests keep the project and\nlocation in their path."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "description": "VertexAI is Gemini on Vertex AI."
    }
  },
  "title": "kojo.yaml: the deployment config"
}
