ECC
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
npx ecc-install --profile fullThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
npx ecc-install --profile fullFair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
npx n8nAn open-source AI agent that brings the power of Gemini directly into your terminal.
npx @google/gemini-cliRun frontier LLMs directly inside Cursor, VS Code, Windsurf, or Claude Desktop using free browser login sessions or local offline providers. Ships with a self-healing Python agent, multi-agent delegation, and cross-session memory.
In late 2025, I hit a massive roadblock with AI coding tools. Outdated training data caused coding models to frequently hallucinate, guess wrong solutions, and ruin codebases. I tried setting up local agents using Model Context Protocol (MCP) APIs, but the results were disappointing. The API responses were subpar and inaccurate, all while running up a bill for every single prompt.
That’s when a wild idea struck: What if we could turn actual web-based models—like ChatGPT, Gemini, Claude, and Perplexity—into local MCP servers? By routing queries directly through free, logged-in browser accounts, I could give my local agents access to frontier reasoning models. No expensive API keys required.
Proxima was born as a personal utility. I used it heavily for months to streamline my own work with no plans to open-source it. However, seeing other developers struggle with the same API costs and model hallucinations, I decided to share it. Proxima was created to provide a local, privacy-focused routing engine that connects development tools to active sessions without requiring paid subscriptions or API plans.
Proxima serves as a local development gateway that centralizes and runs all your AI models together on 127.0.0.1. By handling protocol translation and session routing in the background, it enables your coding agents and development clients to interact with multiple advanced providers or offline engines as a single, standard local endpoint.
Proxima supports two primary modes to power your editor and agent integrations:
Proxima keeps evolving thanks to these amazing people
⭐ Star Sponsor · 🥇 First Sponsor
Great things are built together — Be a part of our journey →
The repository contains proxima-agent/, a local Python assistant. It executes codebase edits, runs test suites, and drives browser tasks by routing LLM calls through Proxima. This allows the agent to run completely free using your website providers or with custom API keys via BYOK mode.
skills.db) to expand its capabilities.Imagine you instruct the agent: "Find the bug in my token verification module, patch it, and verify that the authentication tests pass."
Here is the exact trace of how Proxima Agent executes this task:
sequenceDiagram
autonumber
actor User
participant Agent as Proxima Agent
participant Code as Codebase
participant Test as Test Suite
participant Browser as Chrome (CDP)
participant Audit as Reviewer Agent
User->>Agent: "Find the bug in token verification..."
Agent->>Code: 1. Ingest files & build symbol map
Agent->>Test: 2. Run test suite to capture failure trace
Agent->>Code: 3. Synthesize & write code patch
Agent->>Browser: 4. Emulate login & verify user flow
Agent->>Audit: 5. Spawn sub-agent to audit security
Agent->>User: 6. Request approval (present diff & logs)
The agent is bound by customizable safety permissions:
To keep workflows fast and context accurate, Proxima features separate prompt and memory systems depending on the active routing engine.
Proxima maintains four separate, local, SQLite-backed databases (~/.proxima-agent/*.db) to enable cross-session statefulness:
vault.db): Tracks session lineage (supporting parent-child structures for multi-agent forks) and stores message histories securely.insights.db): Extracts and stores cross-session user preferences, workspace patterns, and environmental facts to prevent repetitive setups.memory.db): Automatically caches compilation errors, syntax exceptions, and the edits that resolved them. The agent queries this history during self-healing loops to apply proven fixes instantly.skills.db): Caches and evaluates custom script actions generated during tasks. The agent evaluates new skills through a Bayesian priority model, promoting them to "proven" or demoting/deprecating them based on Exponential Moving Average (EMA) success rates.Follow these steps to configure and connect Proxima to your local environment.
| Platform | Requirements |
|---|---|
| Node.js | Version 18+ (Required to run the main server process) |
| Python | Version 3.10+ (Only required for the Proxima Agent) |
| OS | Windows · macOS · Linux support |
# Clone the repository
git clone https://github.com/Zen4-bit/Proxima.git
cd Proxima
# Install dependencies & start
npm install
npm start
💡 Windows Users: You can also download and run the latest
.exeinstaller directly from the Releases page.
Once the desktop app opens:
Add this server configuration block to your editor's MCP configuration settings (for example, in Cursor under Settings -> Features -> MCP):
{
"mcpServers": {
"proxima": {
"command": "node",
"args": [
"C:/absolute/path/to/Proxima/src/mcp/index.js"
]
}
}
}
💡 Tip: You can copy the exact configuration block with your machine's absolute paths directly from the Settings ➔ MCP Configuration tab inside the Proxima desktop app window.
The system consists of three primary layers: the Proxima Runtime Host, the Model Context Protocol (MCP) Server, and the Local Agent Runtime.
Below is the complete architectural map showing how protocols, IPC bridges, and providers communicate:
graph TD
subgraph Client Layer [Development Client]
Cursor[Cursor / VS Code / Windsurf]
ClaudeClient[Claude Desktop Client]
end
subgraph MCPServer [MCP Server - Node.js]
MCPIndex[src/mcp/index.js]
ToolHandlers["Modular Tool Handlers<br/>(tools-chat / tools-code / tools-search / tools-content / tools-workflow)"]
end
subgraph CoreEngine [Proxima Core Process - Electron]
HTTPServer["HTTP Server :3210<br/>(OpenAI REST & WS)"]
MessageBus["handleMCPRequest()<br/>(Central Message Bus)"]
PythonAgent["Local Agent Runtime<br/>(python-env)"]
end
subgraph RoutingEngines [Routing Engines]
SessionMode["Session Mode<br/>(Browser Manager & background BrowserViews)"]
BYOKMode["BYOK Mode<br/>(BYOK Router & Context Pipeline)"]
end
subgraph Providers [AI Providers]
WebSessions["Active Web Sessions<br/>(ChatGPT / Claude / Gemini / Perplexity)"]
OfficialAPIs["Official LLM APIs<br/>(OpenAI / Anthropic / Groq / etc.)"]
end
%% Communications
Cursor -->|StdIO JSON-RPC| MCPIndex
ClaudeClient -->|StdIO JSON-RPC| MCPIndex
MCPIndex --> ToolHandlers
ToolHandlers -->|IPC TCP:19222| MessageBus
HTTPServer --> MessageBus
PythonAgent --> MessageBus
MessageBus --> SessionMode
MessageBus --> BYOKMode
SessionMode -->|Session Compliance| WebSessions
BYOKMode -->|Dynamic Fallback / Decryption| OfficialAPIs
For Session Mode, Proxima loads each provider inside isolated BrowserView containers. The compliance layer includes:
electron/providers/engines/*) capture streaming tokens directly from provider HTTP responses for real-time output.The Agent's workflow engine uses an internal command protocol (WCP) for multi-step task delegation, research routing, and temporary state management across sub-agents. See docs/architecture.md for protocol details.
When BYOK Mode is active, Proxima utilizes a local intelligence buffer:
byok/context/) to summarize long conversation loops when approaching provider limits (preventing out-of-context crashes).Read docs/architecture.md for full structural diagrams and details.
Registered by the modular MCP server (src/mcp/).
The following signature capabilities represent Proxima's custom orchestration logic:
| Tool | Command | Description |
|---|---|---|
| Multi-Agent Collaboration | crew | Spawn a collaborative swarm of models to review, critique, and optimize code before returning it. |
| Consensus Routing | smart_query | Query multiple model providers simultaneously, cross-verify their answers, or make them debate. |
| Codebase Intelligence | analyze_file | Ingest local files, build structural symbol maps, and scan/strip credentials or secrets. |
| Multi-Source Research | deep_search | Perform targeted searches across Web, Reddit, GitHub, News, Academic, and Fact-check engines. |
| Cross-AI Fact-Checking | verify | Compare output from different providers, highlight inconsistencies, and score confidence. |
| Algorithmic Compilation | solve | Loop with compiler output and test runners to self-correct code based on diagnostic output until compilation passes. |
| Vulnerability Scanner | security_audit | Scan code snippets for SQL injections, XSS, insecure storage, and deprecated dependencies. |
| Complex Workflow Loops | run_workflow | Chaperone multi-step tasks requiring chaining and conditional validation of different tools. |
| Tool | Description |
|---|---|
ask_chatgpt | Send a message to ChatGPT |
ask_claude | Send a message to Claude |
ask_gemini | Send a message to Gemini |
ask_perplexity | Send a message to Perplexity |
ask_model | Send to any session or BYOK provider |
ask_all_ais | Query all enabled providers simultaneously |
smart_query | Auto-route with modes: auto · verify · consensus · collaborate |
new_conversation | Reset a provider's conversation |
| Tool | Description |
|---|---|
generate_code | Generate code from a description |
review_code | Review a snippet for bugs, security, and best practices |
explain_code | Line-by-line code explanation |
optimize_code | Performance optimization suggestions |
verify_code | Best-practices check for a stated purpose |
solve | Solve a programming problem |
fix_error | Fix an error with code patches |
explain_error | Plain-English error explanation with fixes |
convert_code | Translate code between languages/frameworks |
build_architecture | Design system architecture |
write_tests | Generate comprehensive test files |
security_audit | Deep security vulnerability audit |
| Tool | Description |
|---|---|
deep_search | Typed search: web · reddit · github · news · math · academic · factcheck · stats |
ddg_search | Free DuckDuckGo link search (no provider needed) |
web_scrape | URL → Markdown (SSRF-guarded) |
get_ui_reference | Fetch UI design references |
| Tool | Description |
|---|---|
content | summarize · write · brainstorm · howto · analyze · extract · improve |
compare | Side-by-side comparison |
debate | Multi-perspective debate |
verify | Cross-AI fact-checking with confidence ratings |
| Tool | Description |
|---|---|
analyze_file | Codebase-pack + smart-slice + symbol extraction + secret scan |
review_code_file | Review a single file on disk |
| Tool | Description |
|---|---|
run_workflow | Execute a multi-step workflow |
run_loop | Run an iterative refinement loop |
crew | Multi-AI collaborative task execution |
proxima_cost_report | Token usage and cost report |
proxima_agentic_status | Agentic system status |
| Tool | Description |
|---|---|
clear_cache | Clear internal caches |
show_window | Show the Proxima dashboard window |
hide_window | Hide the Proxima dashboard window |
toggle_window | Toggle Proxima window visibility |
set_headless_mode | Run Proxima in headless mode |
OpenAI-compatible API at http://localhost:3210 (enable in Settings).
POST /v1/chat/completions # OpenAI-compatible chat (stream, tools, functions)
GET /v1/models # List available models (session or BYOK)
GET /v1/functions # Function catalog
GET /v1/stats # Per-provider response stats
POST /v1/conversations/new # Reset a provider's conversation
# BYOK brain endpoints
GET /v1/byok/keys # BYOK key management
GET /v1/byok/models # BYOK model management
GET /v1/brain/recall # Cross-session recall
GET /v1/brain/experience # Learned experiences
GET /v1/brain/skills # Stored skills
GET /v1/brain/stats # Brain statistics
GET /api/status # Server status
GET / # Interactive documentation
curl http://localhost:3210/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "claude", "message": "What is AI?"}'
The model field accepts: auto, a provider name (claude, chatgpt, gemini, perplexity), all, or an array like ["claude", "chatgpt"].
Real-time streaming at ws://localhost:3210/ws (requires REST API enabled).
const ws = new WebSocket("ws://localhost:3210/ws");
ws.send(JSON.stringify({
action: "ask",
model: "claude",
message: "Explain closures in JavaScript",
id: "req-1"
}));
ws.onmessage = (e) => {
const data = JSON.parse(e.data);
console.log(data); // status updates + streamed response chunks
};
Install via Settings ➔ Install CLI to PATH, or npm link.
# Ask any provider
proxima ask "How does async/await work?"
proxima ask claude "Explain React hooks"
# Code tools
proxima code review "function f(){...}" # actions: generate/review/debug/explain
proxima fix "SyntaxError: Unexpected token"
# Pipe build errors directly
npm run build 2>&1 | proxima fix
proxima audit 'SELECT * FROM users WHERE id=' + input
# Content tools
proxima debate "tabs vs spaces"
proxima brainstorm "dev productivity features"
proxima compare "Bun vs Node.js"
proxima translate "Hello world" --to Hindi
# Search & analyze
proxima search "latest Node.js release"
proxima analyze "https://example.com" -q "what is this?"
# Session management
proxima new <provider> # reset a conversation
proxima models | status | stats
Flags: -m/--model, --json, --file, --to, --from, -q/--question
Python
# Requires: pip install requests
# Copy sdk/proxima.py into your project
from proxima import Proxima
client = Proxima()
response = client.chat("Hello", model="claude")
print(response.text)
JavaScript
// Node 18+
const { Proxima } = require('./sdk/proxima');
const res = await new Proxima().chat("Hello", {
model: "claude"
});
console.log(res.text);
| Principle | Implementation |
|---|---|
| Local-first | MCP/IPC (:19222) and REST/WS (:3210) bind to 127.0.0.1. Nothing exposed to the internet. |
| Credential isolation | Session mode reuses existing browser logins — no passwords saved. BYOK keys are encrypted in your OS keychain (SafeStorage). |
| No telemetry | Only your explicit queries go to the providers you choose. |
| Gated execution | The agent executes code by design, protected by permission modes and a safety gate. |
| SSRF protection | web_scrape and the agent's web fetcher are SSRF-guarded. |
Found a vulnerability? Follow SECURITY.md — use GitHub Security Advisories, don't open a public issue.
Yes. If you use Session Mode, it communicates with the official web platforms through your active browser login sessions. There are no fees, and you don't need any paid API keys. You only pay if you explicitly choose BYOK Mode to connect your own API tokens.
Yes. Proxima itself stores nothing on external servers—no logs, chats, keys, or sessions leave your machine, and your configuration remains encrypted locally (using SafeStorage). However, remember that Session Mode still sends your prompts to the third-party AI provider you're logged into (that's how any AI chat works). For fully offline privacy where your code never leaves your local hardware, use local models via BYOK Mode.
Proxima loads secure, isolated browser tabs (called BrowserViews) inside the background. When you log into ChatGPT or Claude inside these views, the browser maintains your active session logins locally on your device, just like Chrome or Firefox does. Proxima simply uses these local sessions to send standard prompts.
Yes. BYOK mode supports any OpenAI-compatible custom endpoints. You can run Ollama or LM Studio offline on your own machine and route all requests through Proxima.
No. By default, the agent runs in Suggest or Smart mode. It will show you exactly what changes it wants to make and wait for you to click "Approve" before modifying any files or running commands.
# JavaScript test suite
npm test
# Python agent test suite
cd proxima-agent && python -m unittest discover -s tests -p "test_*.py"
See TESTING.md for the full testing strategy and coverage details.
Contributions are welcome! See CONTRIBUTING.md for:
Please read our Code of Conduct before contributing.
Proxima is licensed under the Proxima Personal Use License (Personal, Non-Commercial use only).
See LICENSE for the full license text and terms. For commercial licensing inquiries, please contact the repository author.
Proxima v5.0.0 — Making every AI work together
Built by Zen4-bit
Website · Releases · Architecture · Changelog