Commands

ody init

Initialize ody in a project

Synopsis

ody init

Flags

FlagAliasTypeDefaultDescription
--backend-bstring(prompt)Agent backend to use (claude, opencode, codex)
--maxIterations-istring"0"Max loop iterations. 0 means unlimited
--model-mstring(prompt)Model identifier for the backend
--autoCommit-cbooleanfalseCommit after each completed task
--agent-astring(prompt)Agent profile/persona for the backend harness
--notify-nstring(prompt)Notification preference (false, all, individual)
--dry-runbooleanfalsePrint the configuration without saving it

Behavior

When run without flags, ody init walks you through an interactive setup:

  1. Backend selection -- An autocomplete prompt lists backends detected on your system. Only backends with their CLI tool installed and on $PATH are shown.
  2. Model selection -- Optional text input to specify a model for the backend. Leave blank to use the backend's default.
  3. Agent profile -- Optional text input for the agent persona. Leave blank for the default (build).
  4. Validation commands -- Prompts whether you want to add shell commands the agent should run to validate its work (e.g., bun lint, bun test). You can add multiple commands one at a time.
  5. Claude permissions -- If the selected backend is claude, asks whether to skip Claude Code's permission checks.
  6. Notifications -- Select when OS notifications should be sent: disabled, on full completion, or after each iteration.

The resulting configuration is saved to .ody/ody.json. If the .ody/ directory does not exist, it is created.

Examples

Interactive setup:

ody init

Non-interactive with all flags:

ody init --backend claude --maxIterations 5 --model claude-sonnet-4-20250514 --autoCommit

Preview what would be saved:

ody init --backend opencode --dry-run

Generated files

FileDescription
.ody/ody.jsonProject configuration

See the Configuration guide for details on all config keys.

On this page