KortixDocs
Reference

Kortix vs OpenCode config

The strict ownership boundary between kortix.toml and the .kortix/opencode/ config directory.

A Kortix project's config has two owners, and the boundary is strict.

  • Kortix owns kortix.toml and .kortix/Dockerfile — what a project is, its sandbox, secrets, triggers, apps.
  • OpenCode owns .kortix/opencode/ — how the agent behaves. The platform never reads inside it; it only tells OpenCode where it is.

The config dir is declared via [opencode] config_dir (default .kortix/opencode); the agent daemon launches OpenCode with OPENCODE_CONFIG_DIR pointed there.

Ownership table

ConcernLives inRead by
Project metadata (name, description)kortix.toml [project]Kortix
Env / secrets speckortix.toml [env]Kortix
Sandbox base imagekortix.toml [sandbox] + .kortix/DockerfileKortix
Where the OpenCode config dir liveskortix.toml [opencode] config_dirKortix
Triggers (cron + webhook)kortix.toml [[triggers]]Kortix
Apps (experimental)kortix.toml [[apps]]Kortix
Agent personas.kortix/opencode/agents/OpenCode
Skills.kortix/opencode/skills/OpenCode
Slash commands.kortix/opencode/ (commands)OpenCode
Custom tools.kortix/opencode/ (tools)OpenCode
Plugins.kortix/opencode/ (plugins)OpenCode
MCP servers.kortix/opencode/opencode.jsoncOpenCode
Model / provider config.kortix/opencode/opencode.jsoncOpenCode

Rule of thumb

If it describes the project, the sandbox, when work runs, or what gets deployed, it belongs in kortix.toml. If it describes how the agent thinks, talks, or acts, it belongs under .kortix/opencode/.

Full kortix.toml field reference: kortix.toml. The .kortix/opencode/ directory follows OpenCode's standard layout; see opencode.ai/docs for each primitive.

Where the agent runs

The agent runtime is OpenCode, and Kortix runs it in the cloud sandbox — the sandbox agent server launches OpenCode with OPENCODE_CONFIG_DIR set to your config_dir. There is no Kortix command that runs the agent on your machine; the CLI is a cloud control plane, not a local runner.

Because .kortix/opencode/ uses OpenCode's standard layout, the personas, skills, and tools are portable: install the upstream opencode binary and point its config dir at that folder and it reads the same files.

New files under .kortix/opencode/ reach future sandbox sessions only after a change request merges them to main.

Kortix vs OpenCode config | Kortix Docs | Kortix