convez.ai
AgenteDesenvolvimento WebIntermediário
j4633705-cloud

PrismCode

j4633705-cloud/Prismcode

Terminal de IA multi-provider com suas chaves, sem intermediários

Ver no GitHub
BomPluginScore · de 0 a 100

Agent 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/Prismcode

1 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

Estrelas
0
Forks
0
Acompanhando
0
Saúde
100%
Último commit
há 5 meses
Versão
v1.0.0
Issues abertas
0
Contribuidores
2

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.

CI License: MIT Bun TypeScript PRs Welcome

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

PackageDescriptionStatus
@prismcode/cliTerminal UI (React/Ink + OpenTUI), tool execution, git/MCP integration✅ Active
@prismcode/serverHono API: auth, billing, chat streaming, webhooks✅ Active
@prismcode/databasePrisma schema, SQLite via libSQL, auto-generated client✅ Active
@prismcode/sharedShared types, Zod schemas, model registry, plan definitions✅ Active
@prismcode/webLanding page + dashboard (React + Vite + Tailwind v4)✅ Active

Environment

Required

VariableDescription
CLERK_SECRET_KEYClerk secret key (get at https://clerk.com)
CLERK_PUBLISHABLE_KEYClerk publishable key
JWT_SECRETJWT signing secret (change in production!)

AI Providers (at least one for BYOK, all optional)

VariableProviderModels
ANTHROPIC_API_KEYAnthropicClaude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus
OPENAI_API_KEYOpenAIGPT-4o, GPT-4o-mini, o3-mini
GOOGLE_API_KEYGoogleGemini 1.5 Flash, Gemini 1.5 Pro
GROQ_API_KEYGroqLlama 3.3 70B, Mixtral 8x7B
OPENROUTER_API_KEYOpenRouterAuto-routed models

Polar.sh Billing (optional — for managed plans)

VariableDescription
POLAR_ACCESS_TOKENPolar.sh access token
POLAR_PRODUCT_IDDefault product ID for checkout
POLAR_CREDITS_METER_IDCredits meter for usage tracking
POLAR_WEBHOOK_SECRETWebhook signing secret

Full Polar setup guide →

Scripts

CommandDescription
bun run setupGenerate Prisma client + push schema
bun run dev:serverStart API server (port 3000) with hot reload
bun run dev:cliStart CLI in watch mode
bun run dev:webStart landing page dev server (port 3001)
bun run testRun all tests (shared + server)
bun run typecheckTypeScript type checking across all packages
bun run lintLint all packages with Biome
bun run ciFull CI pipeline: typecheck + test
bun run build:webBuild web dashboard for production
bun run docker:upStart 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

PackageTestsStatus
sharedPlans, models, utilities✅ 23 tests
serverCredits 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


Ver o original no GitHub

Bom para

Relacionados