@pnocera/cproxy
v1.3.6
Published
A simple proxy server with TypeScript support, optimized for bun.
Maintainers
Readme
CProxy
A TypeScript proxy server that converts Anthropic Claude API requests to OpenAI-compatible format.
Installation
npm install -g @pnocera/cproxyUsage
# Start HTTP proxy server
cproxy --port 3000
# Start MCP server
cproxy --mcpConfiguration
Set environment variables:
OPENROUTER_API_KEY=your_key_here
ANTHROPIC_PROXY_BASE_URL=https://openrouter.ai/apiAPI
Send Anthropic-format requests to http://localhost:3000/v1/messages
Example:
{
"model": "claude-3-sonnet-20240229",
"max_tokens": 1000,
"messages": [
{"role": "user", "content": "Hello"}
]
}MCP Mode
For Claude Code integration:
# Start MCP server
cproxy --mcpThe MCP server uses the same configuration as the HTTP proxy.
License
MIT
