A lightweight terminal coding agent. Use it as it is, or as a base to build your own specialized coding agent.
- Extensions
- Multi model support
- Context engineering support with
- CLAUDE.md
- Bun >= 1.0.0
bun install -g @yishus/dim-codeOr run directly:
bunx @yishus/dim-codeDim needs at least one API key to work. You can provide keys via environment variables or a config file.
export ANTHROPIC_API_KEY=sk-...
export GOOGLE_API_KEY=... # or GEMINI_API_KEY
export OPENAI_API_KEY=sk-...Create ~/.dim/agent/auth.json:
{
"anthropic": { "apiKey": "sk-..." },
"google": { "apiKey": "..." },
"openai": { "apiKey": "sk-..." }
}Environment variables take precedence over the config file.
bun install
bun run dev # run with hot reload
bun run typecheck # type checkMIT