Open source · Apache-2.0

All your coding subscriptions.
One terminal agent.

Codewith is a CLI coding agent that runs locally. Sign in with the plans you already pay for — ChatGPT, Qwen, MiniMax, Kimi and more — or bring your own API keys. Switch providers mid-session without losing your thread.

$ bun install -g @hasna/codewith

or npm install -g @hasna/codewith · prebuilt binaries on GitHub Releases · then run codewith

codewith
>_ Hasna Codewith (v0.1.18)
model: gpt-5.5 high /model to change
directory: ~/workspace/app
To get started, describe a task or try one of these commands:
/init - create .codewith/CODEWITH.md with instructions for Codewith
/status - show current session configuration
/profile - choose the auth profile for this session
/model - choose what model and reasoning effort to use
 
send⇧⏎ newline⌃T transcript⌃C quit

Every plan. Every key. One agent.

Use your coding subscriptions

  • OpenAI · ChatGPT plans
  • Alibaba Qwen
  • MiniMax
  • Kimi
  • Z.ai
  • Xiaomi MiMo

Bring your own key

  • Anthropic
  • Google Gemini
  • xAI
  • DeepSeek
  • OpenRouter
  • Cerebras
  • NVIDIA
  • Amazon Bedrock

Run local

  • Ollama
  • LM Studio

…or point a custom provider at any OpenAI-compatible endpoint.

One agent, every plan you already pay for

Auth profiles

Keep work, personal, and client logins side by side. Switch with /profile or --auth-profile — rate limits tracked per profile.

Switch providers mid-session

14 built-in providers. Change model and provider in one command without losing your thread.

Schedules & loops

Recurring and one-time schedules run agent threads while you're away. Loops keep iterating until the job is done.

Monitors

Watch builds, logs, and commands from inside the agent and react the moment something changes.

MCP, managed

Add, inspect, and fix MCP servers from a slash command — with self-healing config when a server breaks.

Skills

Reusable skill definitions plus per-project CODEWITH.md instructions the agent always follows.

Sandboxed by default

Seatbelt on macOS, Landlock + bubblewrap on Linux, sandboxing on Windows. Commands can't escape.

Scriptable

Non-interactive codewith exec "prompt" for CI and automation, plus review and apply modes.

Yours to read, run, and fork

Apache-2.0 licensed and developed in the open. Prebuilt binaries for macOS, Linux, and Windows (x64 & arm64) are compiled by CI and published to npm and GitHub Releases — nothing to build, nothing phoning home.

View on GitHub