Skip to content

chainabit code ​

Local coding assistant for your working directory — proposes file edits, billed through your Chainabit account

Synopsis ​

text
chainabit code <instruction...> [options]

Arguments ​

ArgumentDescriptionDefault
<instruction...>Required.—

Options ​

OptionDescriptionDefault
--model <modelId>AI model to use for this request—
--file <path>Include a file as explicit local context (repeatable)[]
--yesSkip proposal confirmation; local permissions still apply—
--dry-runPreview diffs only; never write files—
--workspace <uuid>Workspace context override—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Uses an instruction and explicitly selected files to propose local edits. --dry-run previews changes without writing; --yes skips proposal confirmation but not local permissions. It refuses coding when required local isolation is unavailable, before sending AI work.

Validation ​

The instruction is required and variadic words are joined as one instruction. --file is repeatable; files must be readable and pass privacy/path checks. --dry-run prevents applying edits but does not make an allowed AI request free. Local execution can be unavailable even when the command is registered.

Failures and recovery ​

For a local-isolation refusal, inspect doctor; no AI request is sent on that refusal. For unreadable or refused --file paths, select permitted readable files. AI requests can fail for authentication, wallet balance, plan eligibility or unavailable models; review those prerequisites before retrying.

Safety and billing ​

This operation can start AI work and consume wallet credits. No fixed cost is promised. Check wallet balance and applicable model/plan eligibility; --json is an output format, not a spending or approval exemption.

Examples ​

bash
chainabit code "Explain input validation improvements" --dry-run

Built with purpose. chainabit.com