Codelia is a terminal-first coding agent with a native TUI. It helps you inspect, edit, and reason about code directly in your repository.
The product ships through the codelia CLI, while the main interactive experience is the TUI.
Under the hood, a TypeScript runtime and a Rust TUI communicate over JSON-RPC.
Codelia does not currently provide a strong OS-level sandbox.
Its current safety model is mainly rule/policy-based, and commands such as bash still run on the host with the configured working directory.
If you need strong isolation, treat the current release as not sufficient on its own. Worker/runtime sandbox hardening is still planned/in progress.
Install the published CLI package globally:
npm install -g @codelia/cliUpdate to the latest version:
npm update -g @codelia/cli@latestLaunch the TUI:
codeliaChose a provider/model and set up auth.
Current provider support:
openai(API Key or OAuth with ChatGPT Plus/Pro)anthropic(API Key only)openrouter(API Key only)
Planned / not wired as a runtime provider yet:
google/ Gemini
Then type a request such as:
Find the failing test and explain the root cause.
- Work with a coding agent directly in your terminal
- Resume previous sessions with
--resume - Use slash commands such as
/help,/model,/skills, and/mcp - Add repo-specific instructions with
AGENTS.md - Package reusable workflows as Skills
- Connect external tool servers through MCP
- Run a one-shot non-interactive request with
codelia --prompt
A typical session looks like this:
- Start
codelia - Type a request in the composer
- Press
Enterto send it - Watch inline progress, tool activity, and results in the terminal
- Continue the same thread with follow-up prompts
- Resume later with
codelia --resume
Useful startup commands:
codelia
codelia --resume
codelia --resume <session_id>
codelia --initial-message "Review the latest changes"
codelia --diagnostics
codelia --debug- Start here:
docs/getting-started.md - TUI basics:
docs/tui-basics.md - Themes:
docs/themes.md - CLI reference:
docs/reference/cli.md - Config reference:
docs/reference/config.md - Environment variables:
docs/reference/env-vars.md - AGENTS.md:
docs/agents-md.md - Skills:
docs/skills.md - MCP:
docs/mcp.md
- Docs index:
dev-docs/README.md - Architecture notes:
dev-docs/typescript-architecture-spec.md - Specs:
dev-docs/specs/ - npm publish runbook:
dev-docs/npm-publish.md
Requirements:
- Bun
- Rust toolchain (
cargo) for the TUI build/run path
Install dependencies:
bun installRun the TUI directly from this repo:
bun run tuiUseful development commands:
| Command | Description |
|---|---|
bun run typecheck |
Type checking |
bun run test |
Run tests |
bun run fmt |
Format with Biome |
bun run check:deps |
Dependency hygiene |
bun run check:versions |
Workspace version sync |
packages/runtime— runtime process, tools, permissions, MCPcrates/tui— Rust TUI clientpackages/cli—codeliaCLI entrypointdocs/— user-facing documentationdev-docs/— developer/internal documentation
- Permissions are policy-based and are not a full OS-level security boundary.
bashruns on the host shell with the sandbox working directory; this is not complete isolation.- Worker isolation hardening is still planned/in progress.
