An open-source coding agent for your terminal: run sessions in your repo or an isolated sandbox, on any model, extended with plugins.
Under active development; APIs may change.
pnpm add -g @codeworksh/cli
export ANTHROPIC_API_KEY=... # or OPENAI_API_KEY, XAI_API_KEY, ...
codework run "Inspect and fix the failing tests"Launch the interactive Terminal User Interface (TUI):
pnpm dlx @codeworksh/tuiContinue a session, pick a model, or move into a sandbox:
codework run --session <id> "Now add a regression test"
codework run --provider openai --model gpt-5.5 --thinking high "Plan the migration"
codework run --sandbox-driver daytona "Inspect repository"- Interactive TUI — Full terminal chat interface built with Ink and React, featuring real-time reasoning streams, tool execution badges, metrics, and markdown rendering.
- Any model — OpenAI, Anthropic, Google, xAI, OpenRouter, and more via one catalog (
codework models). - Subscription sign-in —
codework auth login --openai-codexor--github-copilot. - Persistent sessions — resume any session by ID; state lives in a local database.
- Sandboxes — run locally or in
daytona,vercel,memory, orsqldbsandboxes. - Server mode —
codework serveowns sessions and sandboxes; clients attach with--server. - Plugins —
codework plugin add <pkg>adds tools, prompts, and sandbox drivers, per project or globally (-g).
See the CLI docs and TUI docs for details.
| Package | Description |
|---|---|
@codeworksh/cli |
The codework coding agent CLI. |
@codeworksh/tui |
Interactive Terminal User Interface (TUI) built with Ink and React. |
@codeworksh/harness |
Effect-powered agent runtime with persistent sessions and sandboxes. |
@codeworksh/plugin |
SDK for tools, prompt plugins, and sandbox drivers. |
@codeworksh/aikit |
Unified multi-provider LLM API with streaming, tools, and usage. |
Requires Node.js 24.14.1+ and pnpm.
git clone https://github.com/codeworksh/codework.git
cd codework
pnpm install
pnpm cli -- --help # run the CLI from source
pnpm exec vp check
pnpm exec vp run typecheckRead AGENTS.md for repository conventions, and open an issue for bugs or ideas.
The curiosity to build this project was inspired by Mario Zechner’s work on Pi-Mono.