Codelia is primarily used through its TUI coding-agent interface. This guide focuses on the first successful TUI session, with CLI/reference details kept secondary.
Implemented today:
- interactive TUI launch through
codelia - provider auth for
openai,anthropic, andopenrouter - session resume through
--resume - one-shot prompt mode through
codelia --prompt - MCP server management through
codelia mcp ...
Planned / not wired as a runtime provider yet:
google/ Gemini
Install the published CLI package globally:
npm install -g @codelia/cli
codelia --helpFor local development in this repository:
bun install
bun run tuiBefore the first real run, configure one of the supported providers.
Environment variables:
export OPENAI_API_KEY=...
export ANTHROPIC_API_KEY=...
export OPENROUTER_API_KEY=...Or launch the TUI and follow the interactive auth prompts.
Notes:
- OpenAI supports OAuth or API key during interactive setup.
- Anthropic and OpenRouter currently use API key setup.
- By default, stored credentials live under
~/.codelia. - If you set
CODELIA_LAYOUT=xdg, config/auth files move under the XDG config directory (for example~/.config/codelia).
Launch the agent:
codeliaOn startup, the TUI loads the runtime, resolves the current provider/model state, and shows the main composer/log view.
Type a request in the composer and press Enter.
For example:
Find the failing test and explain the root cause.
While the run is active, the log updates inline in the terminal with model output, tool activity, and status messages.
For multiline input:
Shift+Enterinserts a newline when the terminal supports it.Ctrl+Jis the reliable newline fallback.
Inside the composer, type /help to see the current command list.
Common day-to-day commands include:
/help— show commands/model— choose or set a model/fast— toggle model fast mode for supported models/theme— open the theme picker or save a theme choice/skills— browse available skills/mcp— inspect loaded MCP servers/logout— clear the current auth session after confirmation
See tui-basics.md for the day-to-day workflow.
Useful startup commands:
codelia --resume
codelia --resume <session_id>
codelia --initial-message "Review the latest changes"What these do:
--resumeopens the built-in resume flow for the current worktree/workspace by default; pressAin the picker to show all sessions.--resume <session_id>resumes a specific session.--initial-messagestarts the first prompt automatically after startup.
If you want a single non-interactive run instead of the full TUI, use prompt mode:
codelia --prompt "Summarize the repository structure"
codelia -p "Summarize the repository structure"Prompt mode is useful for quick automation, but the main product workflow is the TUI.
- TUI basics:
tui-basics.md - Themes:
themes.md - Skills:
skills.md - MCP:
mcp.md - AGENTS.md:
agents-md.md - CLI reference:
reference/cli.md - Config reference:
reference/config.md - Environment variables:
reference/env-vars.md - User docs index:
README.md - Developer/internal docs:
../dev-docs/README.md