Zen4-bit

Proxima

Community Zen4-bit
Updated

Multi-AI MCP Server - Connect ChatGPT, Claude, Gemini & Perplexity to your coding tools without any API

Proxima

4 AI providers. 1 local server. No API keys.

Use ChatGPT, Claude, Gemini & Perplexity directly inside your coding tools — through your existing accounts.

VersionPlatform

LicenseWebsiteStarsSponsors

Getting Started · CLI · REST API · WebSocket · SDKs · MCP Tools

Demo

App Demo · CLI · Webhook Live Chat & Battle · Application Overview

💖 Sponsor Wall

Proxima keeps evolving thanks to these amazing people

@TheNetworker ⭐ Star Sponsor · 🥇 First Sponsor

Great things are built together — Be a part of our journey →

Overview

Proxima is a local AI gateway that connects multiple AI providers to your development environment. It communicates with each provider at the browser level through your active login sessions — the same way you'd chat with them in your browser.

🌐 One Endpoint Everything through /v1/chat/completions — no separate URLs
🤖 4 AI Providers ChatGPT, Claude, Gemini, Perplexity — any model, any task
Provider Engines Native browser-level communication — 3–10x faster, more reliable
🖥️ CLI Tool proxima ask, proxima fix, proxima debate — right from your terminal
🔌 WebSocket Real-time streaming at ws://localhost:3210/ws
🧰 45+ MCP Tools Search, code, translate, analyze, debate, audit — all via MCP
📡 REST API OpenAI-compatible API on localhost:3210
📦 SDKs Python & JavaScript — one function each
🧠 Smart Router Auto-picks the best available AI for your query
🔑 No API Keys Uses your existing browser sessions — see how it works
🔒 Local & Private Runs on 127.0.0.1, data goes only to providers you're logged into

What's New in v4.1.0

🔥 Provider Engine SystemProxima now uses native browser-level communication with AI providers — no DOM scraping. Responses are 3–10x faster and far more stable, with SSE streaming support and automatic fallback mechanisms.
CLI ToolRun proxima ask, proxima fix, proxima debate from any terminal. Pipe errors straight from your build output. Supports file context, git diff piping, and JSON output for scripts.
🔌 WebSocket ServerReal-time streaming AI at ws://localhost:3210/ws. Bidirectional communication with status updates, request tracking, and keepalive. Useful for apps, scripts, anything that needs live output.
🛠️ 15 New MCP Toolschain_query, solve, debate, security_audit, verify, fix_error, build_architecture, write_tests, explain_error, convert_code, ask_selected, conversation_export, ask_perplexity, github_search, get_ui_reference
📄 Interactive API DocsLive documentation at /docs, /cli, /ws — with a working chat widget to test queries directly in your browser.
🎯 Multi-Model Queriesmodel: "all" queries every provider at once. model: ["claude", "chatgpt"] targets specific ones. Compare responses side-by-side from multiple AI providers in a single request.
📤 Conversation ExportExport full conversation history from any provider using conversation_export. Continue working on AI agent projects, revisit ideas discussed with providers, and build on previous plans without losing context.
🛡️ New REST API FunctionsNew security_audit and debate functions added to the REST API endpoint. File upload support via file field in request body.

Bug fixes & improvements:

  • 🔧 Staggered multi-provider queries — prevents UI freezes during parallel requests
  • 🔧 Smart provider selection — routes coding tasks to Claude, research to Perplexity
  • 🔧 Response caching with TTL (5 min) and automatic eviction (max 100 entries)
  • 🔧 Rate limit handling — detects 429 responses, auto-recovery on expired sessions
  • 🔧 Engine auto-injection on page navigation with duplicate guard
  • 🔧 Claude conversation auto-recovery (handles 404/410 expired sessions)
  • 🔧 ChatGPT SHA3-512 proof-of-work challenge solver
  • 🔧 10MB body size limit on REST API with CORS headers
  • 🔧 Socket leak prevention on IPC reconnect

Getting Started

Requirements

  • Node.js 18+ (for MCP server and CLI)
  • Windows 10/11 — pre-built installer available
  • macOS / Linux — supported via source code

Install

Download Installer (Windows)

Download the latest release and run the installer.

Download Proxima v4.1.0 →

Run from Source (Windows / macOS / Linux)

git clone https://github.com/Zen4-bit/Proxima.git
cd Proxima
npm install
npm start

Electron will open the Proxima window. Log in to your AI providers, enable REST API in Settings, and you're ready.

CLI install:

  • Windows: Settings → ⚡ Install CLI to PATH, or npm link
  • macOS / Linux: npm link (may need sudo npm link)

Connect to your editor

  1. Open Proxima and log into your AI providers (one-time setup)
  2. Go to Settings → MCP Configuration → copy the config
  3. Paste into your editor's MCP config file:
{
  "mcpServers": {
    "proxima": {
      "command": "node",
      "args": ["C:/path/to/Proxima/src/mcp-server-v3.js"]
    }
  }
}
  1. Restart your editor. The tools will appear.

Tip: Use the copy button in Settings — don't type the path manually.

Works with: Cursor · VS Code (MCP extension) · Claude Desktop · Windsurf · Gemini CLI · any MCP-compatible client

Supported Providers

ChatGPT OpenAI's GPT Claude Anthropic's Claude Gemini Google's Gemini Perplexity Web search & research

Each provider runs through a dedicated engine script that handles communication at the browser level. Responses are streamed via SSE using your existing login. If an engine can't connect, Proxima falls back to DOM-based interaction automatically.

How It Works

In v4.1.0, Proxima uses a Provider Engine System instead of DOM scraping.

When you send a query, Proxima uses a lightweight engine script within the provider's browser tab. That script handles communication at the browser level and streams the response back via SSE. If the engine fails for any reason, Proxima automatically falls back to DOM-based interaction — so it keeps working either way.

Your editor → MCP tool call → Proxima local server
                                      ↓
                           Engine injected into session
                                      ↓
                      Browser-level communication (SSE stream)
                                      ↓
                              Response returned
Engine Provider How it works
chatgpt-engine.js ChatGPT Handles proof-of-work challenges, streams via SSE
claude-engine.js Claude Org-level auth handling, SSE streaming, auto-recovery
gemini-engine.js Gemini SSE streaming with auto-reconnect
perplexity-engine.js Perplexity SSE streaming

CLI Tool

The proxima CLI lets you use any AI provider from your terminal.

Install

From the app

Settings → ⚡ Install CLI to PATH

From source

npm link                  # Windows
sudo npm link             # macOS / Linux

Without installing

npm run cli -- ask "question"

Commands

# Ask any provider
proxima ask "How does async/await work in JS?"
proxima ask claude "Review this approach"
proxima ask chatgpt "Explain this error"

# Search
proxima search "latest Node.js release"

# Code
proxima code "REST API with Express and JWT auth"
proxima code review "function fetchUser(id) { ... }"
proxima code explain "async/await"

# Smart tools
proxima fix "SyntaxError: Unexpected token '<'"
proxima debate "tabs vs spaces"
proxima audit "SELECT * FROM users WHERE id=" + req.query.id
proxima brainstorm "features for a dev productivity tool"

# Translate
proxima translate "Hello world" --to Hindi

# Compare all providers
proxima compare "Bun vs Node.js for production"

# Utilities
proxima status                     # server status
proxima stats                      # response time stats
proxima models                     # list available providers
proxima new                        # reset all conversations

Pipe Support

# Fix build errors directly
npm run build 2>&1 | proxima fix

# Review a git diff
git diff | proxima code review

# Pass file as context
proxima ask "What does this do?" --file src/server.js

Flags

Flag What it does
-m / --model Override provider (claude, chatgpt, gemini, perplexity, auto)
--json Raw JSON output for scripting
-l / --lang Specify code language
--file Include a file as context
--to Target language for translate
--from Source language for translate

REST API

Proxima runs an OpenAI-compatible REST API at http://localhost:3210.

Enable it in Settings → REST API & CLI.

Endpoints

POST /v1/chat/completions   — OpenAI-compatible chat
GET  /v1/models             — List available models
GET  /v1/functions          — API function catalog with examples
GET  /v1/stats              — Response time stats per provider
POST /v1/conversations/new  — Reset all conversations
GET  /api/status            — Server status
GET  /docs                  — Interactive API docs (with live chat widget)
GET  /cli                   — CLI documentation
GET  /ws                    — WebSocket documentation

Functions

The "function" field controls what happens. No function = normal chat.

Function Body Fields What it does
(none) model, message Normal chat
"search" model, message, function Web search + AI analysis
"translate" model, message, function, to Translate text
"brainstorm" model, message, function Generate ideas
"code" model, message, function, action Code generate/review/debug/explain
"analyze" model, function, url Analyze URL or content
"security_audit" model, code, function Scan code for vulnerabilities
"debate" model, message, function Multi-perspective debate

Examples

Chat:

curl http://localhost:3210/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "claude", "message": "What is AI?"}'

Search:

curl http://localhost:3210/v1/chat/completions \
  -d '{"model": "perplexity", "message": "AI news 2026", "function": "search"}'

Translate:

curl http://localhost:3210/v1/chat/completions \
  -d '{"model": "gemini", "message": "Hello world", "function": "translate", "to": "Hindi"}'

Code Generate:

curl http://localhost:3210/v1/chat/completions \
  -d '{"model": "claude", "message": "Sort algorithm", "function": "code", "action": "generate", "language": "Python"}'

Query All Providers:

curl http://localhost:3210/v1/chat/completions \
  -d '{"model": "all", "message": "Explain quantum computing"}'

Security Audit:

curl http://localhost:3210/v1/chat/completions \
  -d '{"model": "claude", "function": "security_audit", "code": "db.query(\"SELECT * FROM users WHERE id=\" + req.query.id)"}'

Multi-model queries

model: "all"                       // all enabled providers
model: ["claude", "chatgpt"]       // specific providers

Response Format

{
  "id": "proxima-abc123",
  "model": "claude",
  "choices": [{
    "message": {
      "role": "assistant",
      "content": "AI response here..."
    }
  }],
  "proxima": {
    "provider": "claude",
    "responseTimeMs": 2400
  }
}

When using model: "all", each provider gets its own entry in choices[].

SDKs

Python

from proxima import Proxima
client = Proxima()

# Chat — any model
response = client.chat("Hello", model="claude")
response = client.chat("Hello", model="chatgpt")
response = client.chat("Hello")  # auto picks best
print(response.text)
print(response.response_time_ms)

# Search
result = client.chat("AI news 2026",
    model="perplexity", function="search")

# Translate
hindi = client.chat("Hello world",
    model="gemini", function="translate",
    to="Hindi")

# Code
code = client.chat("Sort algorithm",
    model="claude", function="code",
    action="generate", language="Python")

# System
models = client.get_models()
stats = client.get_stats()
client.new_conversation()

pip install requests, then copy sdk/proxima.py to your project.

JavaScript

const { Proxima } = require('./sdk/proxima');
const client = new Proxima();

// Chat — any model
const res = await client.chat("Hello",
    { model: "claude" });
console.log(res.text);

// Search
const news = await client.chat("AI news",
    { model: "perplexity",
      function: "search" });

// Translate
const hindi = await client.chat("Hello",
    { model: "gemini",
      function: "translate",
      to: "Hindi" });

// Code generate
const code = await client.chat("Sort algo",
    { model: "claude",
      function: "code",
      action: "generate" });

// System
const models = await client.getModels();
const stats = await client.getStats();

Works with Node.js 18+ (native fetch).

SDK Configuration

client = Proxima(base_url="http://192.168.1.100:3210")   # custom URL
client = Proxima(default_model="claude")                  # default model

WebSocket

Real-time streaming AI at ws://localhost:3210/ws.

Requires REST API to be enabled in Settings.

Example

const ws = new WebSocket("ws://localhost:3210/ws");

ws.send(JSON.stringify({
  action: "ask",
  model: "claude",
  message: "What is a closure?",
  id: "req_1"
}));

ws.onmessage = (e) => {
  const msg = JSON.parse(e.data);
  // { type: "status",   id: "req_1", status: "processing", model: "claude" }
  // { type: "response", id: "req_1", model: "claude", content: "...", responseTimeMs: 2400 }
};

Available Actions

Action What it does
ask / chat Chat with any provider
search Web search
code generate / review / explain / optimize / debug
translate Translate text
brainstorm Generate ideas
debate Multi-provider debate (queries all providers)
audit Security code audit
new_conversation Reset conversation context for all providers
stats Connection and provider statistics
ping Keepalive — returns pong

MCP Tools

🤖 AI Provider Tools

Tool What it does
ask_chatgpt Query ChatGPT (supports file upload)
ask_claude Query Claude (supports file upload)
ask_gemini Query Gemini (supports file upload)
ask_perplexity Query Perplexity (supports file upload)
ask_all_ais Send same query to all providers at once
ask_selected Pick specific providers to query
compare_ais Get and compare responses side by side
smart_query Auto-picks best provider, falls back if one fails

🔧 Development Tools

Tool What it does
solve One-shot problem solver — senior engineer level
fix_error Root cause + exact fix for any error
build_architecture Full project architecture blueprint
write_tests Generate tests (jest / vitest / mocha / pytest)
explain_error Error explained in plain terms, no jargon
convert_code Convert code between languages or frameworks

⚔️ Multi-AI Tools

Tool What it does
chain_query Sequential multi-AI pipeline — use {previous} to pass output forward
debate Multi-provider debate with FOR / AGAINST / NEUTRAL stances
verify Cross-provider answer verification with confidence score (0–100%)
security_audit Code security scan — flags CRITICAL / HIGH / MEDIUM / LOW issues

💻 Code Tools

Tool What it does
generate_code Generate code from a description
explain_code Plain-English explanation of any code
optimize_code Performance improvement suggestions
review_code Code review feedback
verify_code Check against best practices

🔍 Search Tools

Tool What it does
deep_search Comprehensive web search
internet_search General internet search on any topic
news_search Latest news articles
reddit_search Reddit discussions
github_search Find open-source repos, code, and solutions on GitHub
academic_search Papers and research
math_search Math problems step-by-step

📝 Content Tools

Tool What it does
brainstorm Generate ideas on any topic
summarize_url Summarize any URL
generate_article Full article generation
writing_help Writing assistance
fact_check Fact verification
find_stats Find statistics and data
how_to Step-by-step instructions
compare Compare two things in depth

🔬 Analysis Tools

Tool What it does
analyze_document Analyze documents from URL
extract_data Extract structured data from text or URL
get_ui_reference UI/UX design consultant — colors, layouts, components, CSS tokens, and code improvements

📁 File Tools

Tool What it does
analyze_file Upload and analyze a local file
review_code_file Code review on a local file (bugs, performance, security)

🪟 Window Controls

Tool What it does
show_window Show the Proxima window
hide_window Hide to system tray
toggle_window Toggle visibility
set_headless_mode Run fully in background

🔄 Session Tools

Tool What it does
new_conversation Reset conversation context
clear_cache Clear response cache
conversation_export Export full conversation history

Security & Privacy

Since Proxima works without API keys, a few things worth knowing:

  • No credentials stored. Proxima uses your existing browser session cookies — the same way you're already logged in.
  • Nothing leaves your machine except the queries you send to AI providers you're logged into.
  • Runs on localhost. The MCP server, REST API, and WebSocket are all local. Nothing is exposed to the internet.
  • No telemetry. Proxima doesn't collect or send any usage data anywhere.
  • Sessions are yours. If you log out from a provider's website or clear browser data, you'll need to log in again through Proxima.

Proxima doesn't bypass authentication — it uses the sessions you already have. Same as using the site in a browser.

Project Structure

Proxima/
├── electron/
│   ├── main-v2.cjs                  # Electron main process
│   ├── browser-manager.cjs          # Browser session management
│   ├── rest-api.cjs                 # REST API server (OpenAI-compatible)
│   ├── ws-server.cjs                # WebSocket server
│   ├── provider-api.cjs             # Provider engine injection manager
│   ├── index-v2.html                # App UI
│   ├── preload.cjs                  # Renderer preload bridge
│   └── providers/
│       ├── chatgpt-engine.js        # SHA3-512 POW + SSE streaming
│       ├── claude-engine.js         # Org auth + SSE streaming
│       ├── gemini-engine.js         # Session SSE streaming
│       └── perplexity-engine.js     # SSE streaming
├── cli/
│   └── proxima-cli.cjs              # Terminal CLI
├── src/
│   ├── mcp-server-v3.js             # MCP server (50+ tools)
│   └── enabled-providers.json       # Provider config
├── sdk/
│   ├── proxima.py                   # Python SDK
│   └── proxima.js                   # JavaScript SDK
├── assets/                          # Icons, screenshots, demo
└── package.json

Troubleshooting

Windows Firewall prompt on first launchProxima runs on localhost:19223 and localhost:3210. Click Allow — it only accepts local connections.

Provider shows "Not logged in"Each provider has a different login method:

  • ChatGPT, Claude, Perplexity — click the provider tab and log in using OTP (email code). Google Sign-In is restricted in embedded browsers by Google's policy.
  • Gemini — uses cookie-based authentication. Log in to Google in your regular browser first, then Proxima picks up the session automatically.

REST API not respondingCheck that REST API is enabled in Settings → REST API & CLI section. Visit http://localhost:3210 in your browser to verify.

MCP tools not showing in editor

  1. Make sure Proxima is running
  2. Verify the path in your MCP config (use the Settings copy button)
  3. Restart your editor

CLI: proxima not found after installOpen a fresh terminal. If still not found, click 🔧 Fix in Settings → CLI section.

CLI: "Cannot connect to Proxima"Proxima must be running and REST API must be enabled. The CLI connects to localhost:3210.

WebSocket won't connectWebSocket shares the REST API server. Enable REST API in Settings first.

Sponsors 💖

With ongoing development of Proxima, GitHub Sponsors contributes to maintaining and improving the project on GitHub

License

Proxima is licensed for non-commercial use only. See LICENSE for full terms.

Proxima v4.1.0 — One API, All AI Models ⚡

Made by Zen4-bit · Every ⭐ matters 💕

MCP Server · Populars

MCP Server · New