Skip to main content
@anonymous-dev/0x0-server is the local runtime for AI-powered developer tools. It exposes one provider layer over OpenAI and Anthropic models. The primary app surfaces are server chat and server completions. Clients can call them through HTTP for simple requests or WebSocket for editor sessions, agent turns, cancellation, and change review.

What It Provides

  • Provider discovery through GET /providers
  • Streaming chat through POST /chat
  • One-shot code completion through POST /completions
  • One-shot inline edits through POST /inline-edit
  • Git-backed agent sessions over /ws
  • Worktree-based change review with accept and discard operations

Quick Start

# from the 0x0 repo
bun install

OPENAI_API_KEY=... ANTHROPIC_API_KEY=... bun run --cwd apps/server dev
The server listens on http://127.0.0.1:4096 by default. Set PORT to choose another port.

Runtime Shape

SurfaceUse it for
HTTPStateless chat, completion, inline-edit, provider, and session endpoints
SSEStreaming output from POST /chat
WebSocketEditor sessions, long-running agent turns, cancellation, and review state
WorktreesIsolated agent edits before the user accepts or discards changes

Documentation

Server Chat

Chat, inline edits, agent sessions, and worktree review

Server Completions

Ghost-text completion requests for editor buffers

Configuration

Environment variables, port selection, and local state

API Reference

HTTP endpoints, WebSocket messages, and stream events

Providers

OpenAI and Anthropic provider configuration