PrismCode
j4633705-cloud/Prismcode
Terminal de IA multi-provider com suas chaves, sem intermediários
Ver no GitHubAgent de IA baseado em terminal com suporte a múltiplos provedores (Claude, GPT, Gemini, Ollama) e gerenciamento BYOK (suas próprias chaves). Oferece integração Git nativa, suporte a MCP, streaming em tempo real e modos de planejamento e construção para desenvolvimento assistido por IA.
Instalação
npx convez-ai j4633705-cloud/Prismcode1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Desenvolvimento de código via chat de IA direto no terminal
- Alternativa local a Cursor/Windsurf com controle total de modelos
- Fluxo de trabalho Git integrado (diffs, commits, histórico) via linguagem natural
- Exploração de arquitetura e análise de código em modo somente leitura
Veredito

Projeto maduro e bem arquitetado para desenvolvedores que querem IA no terminal sem intermediários. Suporte multi-provider BYOK com Git integration nativa tira proveito de MCP para flexibilidade real, mas requer familiaridade com Bun e configuração de chaves.
README
A tradução para o português deste README ainda está na fila.
Quick Start
# 1. Install dependencies
bun install
# 2. Configure environment
cp .env.example .env
# Edit .env with your API keys (see Environment section below)
# 3. Setup database
bun run setup
# 4. Start the server
bun run dev:server
# 5. Start the CLI (in another terminal)
bun run dev:cli
Prerequisites: Bun >= 1.3, node_modules installed.
Features
Multi-Provider
Switch between Claude, GPT, Gemini, Ollama, Groq, and OpenRouter mid-conversation without losing context. Each response is tagged with the model that generated it.
BYOK (Bring Your Own Key)
No subscription required. Use your own API keys from any supported provider directly. No markup, no middleman, no data leaving your machine unless you choose it.
Git Integration
Review diffs, stage changes, write commits, browse history — all through natural language. Full git workflow without leaving the terminal.
MCP Support
Model Context Protocol support means your agent can connect to databases, APIs, internal services, and custom tools. No hardcoded integrations — just configure and go.
Plan & Build Modes
- PLAN mode: Read-only analysis and architecture exploration
- BUILD mode: Full implementation with read, write, edit, bash, and git tools
Streaming Responses
Real-time token-by-token streaming with persisted session history across restarts.
Authentication
Browser-based OAuth via Clerk. Token-based API access for third-party integrations.
Usage Tracking & Billing
Metered AI usage through Polar.sh (optional). Transparent per-request credit costs. Subscription plans for managed access.
Architecture
┌─────────────────────────────────────────────────────────────┐
│ PrismCode │
├──────────────┬──────────────┬──────────────┬────────────────┤
│ packages/ │ packages/ │ packages/ │ packages/ │
│ cli/ │ server/ │ database/ │ shared/ │
│ │ │ │ │
│ Terminal UI │ Hono API │ Prisma │ Schemas │
│ React/Ink │ Auth │ SQLite │ ToolContracts │
│ Tool exec │ Billing │ LibSQL │ Model prices │
│ Git ops │ Chat stream │ │ Plan configs │
│ MCP client │ Webhook │ │ BYOK config │
└──────────────┴──────────────┴──────────────┴────────────────┘
Data Flow
Browser/CLI ──► Clerk OAuth ──► Hono API ──► AI Provider API
│ │
▼ ▼
Prisma/SQLite Streaming Response
│ │
└────── Usage tracking ──┘
│
Polar.sh (billing)
Packages
| Package | Description | Status |
|---|---|---|
@prismcode/cli | Terminal UI (React/Ink + OpenTUI), tool execution, git/MCP integration | ✅ Active |
@prismcode/server | Hono API: auth, billing, chat streaming, webhooks | ✅ Active |
@prismcode/database | Prisma schema, SQLite via libSQL, auto-generated client | ✅ Active |
@prismcode/shared | Shared types, Zod schemas, model registry, plan definitions | ✅ Active |
@prismcode/web | Landing page + dashboard (React + Vite + Tailwind v4) | ✅ Active |
Environment
Required
| Variable | Description |
|---|---|
CLERK_SECRET_KEY | Clerk secret key (get at https://clerk.com) |
CLERK_PUBLISHABLE_KEY | Clerk publishable key |
JWT_SECRET | JWT signing secret (change in production!) |
AI Providers (at least one for BYOK, all optional)
| Variable | Provider | Models |
|---|---|---|
ANTHROPIC_API_KEY | Anthropic | Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus |
OPENAI_API_KEY | OpenAI | GPT-4o, GPT-4o-mini, o3-mini |
GOOGLE_API_KEY | Gemini 1.5 Flash, Gemini 1.5 Pro | |
GROQ_API_KEY | Groq | Llama 3.3 70B, Mixtral 8x7B |
OPENROUTER_API_KEY | OpenRouter | Auto-routed models |
Polar.sh Billing (optional — for managed plans)
| Variable | Description |
|---|---|
POLAR_ACCESS_TOKEN | Polar.sh access token |
POLAR_PRODUCT_ID | Default product ID for checkout |
POLAR_CREDITS_METER_ID | Credits meter for usage tracking |
POLAR_WEBHOOK_SECRET | Webhook signing secret |
Scripts
| Command | Description |
|---|---|
bun run setup | Generate Prisma client + push schema |
bun run dev:server | Start API server (port 3000) with hot reload |
bun run dev:cli | Start CLI in watch mode |
bun run dev:web | Start landing page dev server (port 3001) |
bun run test | Run all tests (shared + server) |
bun run typecheck | TypeScript type checking across all packages |
bun run lint | Lint all packages with Biome |
bun run ci | Full CI pipeline: typecheck + test |
bun run build:web | Build web dashboard for production |
bun run docker:up | Start via Docker Compose |
Testing
# Run all tests
bun run test
# Run specific package
bun test --cwd packages/shared
bun test --env-file=.env --cwd packages/server
Test Coverage
| Package | Tests | Status |
|---|---|---|
shared | Plans, models, utilities | ✅ 23 tests |
server | Credits calc, auth, sessions | ✅ 15 tests |
Contributing
We welcome contributions! Please see our Contributing Guide for:
- How to report bugs and request features
- Development setup
- Coding standards
- Pull request process
Security
Found a security vulnerability? Please see our Security Policy.
License
MIT © 2026 davifariasp