boxcode

CLI

A coding assistant that lives in your terminal.

It reads your files, runs your commands, and waits for you before every destructive one. Connects to any OpenAI-compatible LLM endpoint. Written in Rust. MIT licensed.

curl -fsSL https://boxcode.sh/install.sh | bash

Every file change is a diff.

A write is approved by looking at red and green lines with real line numbers, against the file as it is on disk right now. The preview is produced by the same code that applies the edit, so what you approve and what happens cannot differ.

/plan, then write.

Research first, get an editable plan.md in your project, then approve the approach before any file changes. /rollback undoes every file the model wrote this session — your own edits are never touched.

Publish, auth, a database.

Say “publish this” and get a shareable link. Add sign-up, a per-project SQLite file, live-reload, and change requests from the live page. Deploy to Vercel or Netlify in the same conversation.

Open endpoints.

/provider picks a provider and a model. Custom endpoints work. Existing DEEPSEEK_API_KEY (and the rest) are picked up automatically. Configuration lives in ~/.boxcode/config.toml.

Slash commands

Drive the session without leaving the prompt.

  • /planResearch first, then approve a plan before any file changes
  • /providerPick a provider, then a model
  • /modelRe-pick the model for the current provider
  • /initExplore the project and write BOXCODE.md
  • /resumeReload this directory's last session
  • /pullSwitch to a different project this machine has published
  • /compactSummarize a long conversation, freeing context
  • /usageLocal token usage — today, last 7 days, all time
  • /rollbackUndo every file the model wrote this session

Need the editor surface as well?

Boxcode IDE