
C0:CHAT
Your AI workbench. Any model, your keys, your data.
Multi-model chat with branching threads, codebase mentions, BYOK provider routing, local LLM support, slash commands, and an extracted-artifact runner. Built for vibe coders.

What it does
Every claim below is backed by working code in the current build.
Hot-swap models mid-conversation
OpenAI, Anthropic, Google, DeepSeek, plus the full OpenRouter catalog.
OpenRouterModelService dynamically fetches the live catalog so new models appear without a release. Swap in any message — context is preserved.
BYOK routing — keys never leave your machine
Configure your own Anthropic key or local Ollama / LM Studio endpoint and the byokClient routes around hosted inference entirely.
See c0chatService/byokClient.ts. When BYOK is set, requests go direct provider → user; the C0vibe backend never sees the prompt or response.
Branching threads
Fork any message, compare two models on the same prompt, merge what worked.
BranchService persists order and color-codes each branch so you can review divergence at a glance.
@-mentions for files & docs
@doc:filename, @c0rep:file, @img:asset pull project context inline — no copy/paste.
FileMentions component reads from the document sidebar and inlines content as context blocks.
Auto-learned memory
C0:CHAT extracts your preferences, coding style, and recurring facts as you talk.
Gated by auto_learn_enabled. Regex-based MemoryExtractionService — no opaque embeddings, you can see exactly what was learned.
Live token & cost tracking
Per-model USD spend and token count, aggregated per project.
usageClient.ts tracks every request; the metadata panel (Cmd+I) surfaces the breakdown.
Code artifact runner
Interactive HTML/React snippets get extracted from responses and run in a sandbox.
ArtifactExtractor isolates code blocks and renders runnable previews — useful for components, charts, regex playgrounds.
Slash commands & shortcuts
/new, /clear, /regenerate, /model-switch. Cmd+I metadata, Cmd+Shift+M model comparison.
Defined in defaultCommands.ts and KeyboardShortcuts.tsx — extendable.
C0:CHAT vs ChatGPT & Copilot
- Use any model — including local
- Branching + comparison built-in
- Your API keys, direct calls
- No subscription required for BYOK