📚 Docs site: vidlg-proxai.netlify.app (Astro / Starlight, source in site/)
ProxAI is a small local compatibility proxy for OpenAI-compatible requests. It accepts local client traffic, normalizes the specific OpenAI Responses API system-message shape that breaks some upstreams, and forwards requests to the configured provider with minimal surprises.
Today, the stable runtime paths support no-conversion forwarding for OpenAI Responses, OpenAI Chat Completions, and Anthropic Messages, plus explicit cross-protocol translation for selected protocol pairs. The config model is protocol-aware so routing and conversion paths can expand explicitly over time without turning ProxAI into a generic AI gateway.
The current stable forwarding and translation paths are:
- inbound:
openai_responses→ outbound:openai_responses - inbound:
openai_chat_completions→ outbound:openai_chat_completions - inbound:
anthropic_messages→ outbound:anthropic_messages - inbound:
openai_responses→ outbound:openai_chat_completions - inbound:
openai_responses→ outbound:anthropic_messages - inbound:
openai_chat_completions→ outbound:anthropic_messages - inbound:
anthropic_messages→ outbound:openai_responses
Other cross-protocol translation paths remain intentionally unsupported until they are implemented explicitly. See Protocols Reference for the full matrix.
- Download the Windows release executable, or build from source.
- Run ProxAI once to generate the app directory and
config.example.toml. - Edit
config.toml(under%USERPROFILE%\.proxai\on Windows,~/.proxai/on Linux/macOS) to set providerbase_urlandapi_key. - Point your OpenAI-compatible client at
http://127.0.0.1:18080/v1.
For the full walkthrough, see Quick Start.
| Endpoint | Default URL |
|---|---|
| Proxy | http://127.0.0.1:18080 |
| MCP | http://127.0.0.1:18081/mcp |
For all other defaults and limits, see Defaults and Limits.
CLI flags are intentionally small and used for temporary overrides only:
proxai --config <path> \
--upstream <url> \
--api-key <key> \
--port <port> \
--log-level <level> \
--log-format <human|json> \
--route-override ROUTE.FIELD=VALUEFor the full reference (including the capture subcommand), see CLI Reference.
The complete documentation lives in site/src/content/docs/ and is published to
vidlg-proxai.netlify.app. Key sections:
- Using ProxAI — user-facing task guide
- Configuration — runtime settings, routes, providers, capture, logging, errors
- Routing and Providers — how providers are selected
- Observability — capture, logs, privacy boundaries
- Troubleshooting — common symptoms and next checks
- Protocol Overview — phase axis, protocol axis, conversion matrix
- Streaming Behavior — terminal events, tool-call timeouts
- Architecture — request lifecycle, module boundaries
- Behavior Contracts — stable promises ProxAI commits to
Reference pages:
- Configuration Reference — full
config.example.toml - CLI — runtime flags and capture subcommands
- Defaults and Limits
- Protocols — values, paths, conversion pairs
- Route Matching — route outcomes, protocol guards, and fallback behavior
- Capture Phases — capture boundaries and privacy risk
- Environment and Files — app directories and local artifacts
- Error Responses — payload, type enum, HTTP status
- Glossary — shared terminology
Common commands:
pixi installjust run— run ProxAI locallyjust check— full local validationjust test-e2e— end-to-end testsjust build— release buildcargo run -- check-update— check for updates
Protocol coverage comparison against official SDKs:
just compare-anthropic-protocol— Anthropic Messages types vs official TS SDKjust compare-openai-protocol— OpenAI types vsasync-openaiv0.40.2
The referenced SDK checkouts are git submodules under contrib/:
contrib/anthropic-sdk-typescriptcontrib/async-openai
For the alignment rules enforced by these scripts, see Protocol Conversion.
The docs site is built with Astro + Starlight. From the repository root:
just site install # install dependencies (pnpm via pixi)
just site dev # local dev server at http://localhost:4321
just site build # production build into site/dist
just site check # build + docs i18n/structure validationSee site/README.md for details.
GitHub release artifacts are versioned like:
proxai-vX.Y.Z-windows-x86_64.exe
The current repo keeps cross-protocol translation and route-level protocol filtering explicit. Add new protocol pairs deliberately, with runtime routing, request/response conversion, and tests for the exact pair, rather than growing ProxAI into a generic AI platform by accident.