Skip to content

Latest commit

 

History

History
142 lines (97 loc) · 3.67 KB

File metadata and controls

142 lines (97 loc) · 3.67 KB

Getting Started

This guide gets Koder from install to a useful first coding session.

Install

Use uv tool install for a clean command-line install:

uv tool install koder

Koder requires Python 3.10 or newer.

For local development from this repository:

uv sync
uv run koder

Configure A Model

The shortest setup is a universal API key and a model name:

export KODER_API_KEY="your-api-key"
export KODER_MODEL="gpt-4o"
koder

KODER_API_KEY, KODER_BASE_URL, KODER_MODEL, and KODER_REASONING_EFFORT override provider-specific settings and ~/.koder/config.yaml.

Provider-specific examples:

OPENAI_API_KEY="sk-..." KODER_MODEL="gpt-4o" koder
ANTHROPIC_API_KEY="..." KODER_MODEL="claude-opus-4-20250514" koder
GOOGLE_API_KEY="..." KODER_MODEL="gemini/gemini-2.5-pro" koder
KODER_BASE_URL="http://localhost:8080/v1" KODER_MODEL="openai/local-model" koder

Subscription-backed providers use koder auth:

koder auth login google
koder auth login claude
koder auth login chatgpt
koder auth login antigravity
koder auth list

After login, use the provider prefix in KODER_MODEL, for example google/gemini-3-pro-preview, claude/claude-opus-4-5-20250514, or chatgpt/gpt-5.2.

See Configuration Guide for the full provider matrix.

Pick A Runtime Style

Koder can be used in three common ways:

Style Command Use it when
Interactive TUI koder You want normal coding work with streamed output, slash commands, shell mode, file mentions, and resume.
Single prompt koder "summarize the current git diff" You know the task and want one recorded turn from your shell.
Print mode koder --print "summarize" You want script-friendly output for automation or logs.

Start A Session

Interactive mode is the normal daily workflow:

koder

Single prompt mode is useful from scripts or when you already know the task:

koder "summarize the current git diff"

Named sessions keep a durable conversation attached to a project or topic:

koder -s billing-refactor
koder -s billing-refactor "continue the failing test investigation"

Resume previous work with:

koder --resume
koder --continue

First Workspace Check

Inside a project, run these commands before asking for large edits:

/onboarding
/status
/model
/files
/permissions

They show the active provider, session, workspace directory, loaded context, and permission policy. If something looks wrong, fix it before delegating substantial work.

A Safe First Task

Try a read-only task first:

koder "inspect this repo and explain the test command"

Then move to a small edit:

koder "fix the failing test in tests/test_example.py and run the focused test"

Koder will use the project instructions from AGENTS.md when present, and it stores session state locally under ~/.koder/.

Before allowing larger edits, ask Koder to show the boundary:

koder "report the current workspace, loaded project instructions, configured model, and whether any sandbox backend is active. Do not edit files."

Then run a small implementation task with explicit verification:

koder "fix the smallest failing test you can identify, run only the focused test first, and summarize changed files."

What To Read Next