ECC
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
- 309k
- JavaScript
- MIT
- 2 d ago
๐ OpenAI-compatible API bridge for Claude.Code via MCP - Enable Cline to use Claude.Code
Repo vanzan01/cline.code, read from GitHub 1 min ago. vanzan01 has not joined Take My Repo.
vanzan01/cline.code is a public repo on GitHub by vanzan01. ๐ OpenAI-compatible API bridge for Claude.Code via MCP - Enable Cline to use Claude.Code. It declares the MIT license on GitHub. It is written mainly in JavaScript, has 7 stars and last changed on 2025-05-29. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Use Claude Code with the Cline VS Code extension through a simple OpenAI-compatible bridge.
cline.code makes Claude Code work with the Cline VS Code extension. It's a bridge that translates between Cline's OpenAI API format and Claude's MCP (Model Context Protocol).
๐ BREAKTHROUGH: Fully Working with Cline!
After extensive debugging and solving multiple critical compatibility issues, the bridge now provides complete Cline integration. See BREAKTHROUGH_SOLUTION.md for the technical journey.
This bridge enables the Cline VS Code extension to work with Claude AI by:
Hey! ๐ I'm someone who loves Claude Code - it's my main go-to coding assistant. I kept seeing people in forums and Discord asking "Can I use Claude with Cline?" The Cline VS Code extension is amazing, but it only worked with OpenAI.
I thought: "This sounds like a fun personal challenge... I wonder if I can make Claude work with Cline?"
Spoiler alert: I did! ๐
After lots of experimenting, I figured out how to use Claude's MCP (Model Context Protocol) server as a bridge. This adapter sits between Cline and Claude Code, translating API calls so they work together perfectly.
This is a personal project I built for fun and to help the community. Here's what that means:
cline.code leverages Anthropic's official Model Context Protocol (MCP) server functionality built into Claude Code. Here's the complete architecture:
graph TD
A[Cline VS Code Extension] -->|OpenAI API format| B[cline.code Bridge<br/>Express.js Server]
B -->|JSON-RPC calls| C[Claude MCP Server<br/>claude mcp serve]
C -->|Task tool requests| D[Claude AI<br/>Anthropic's API]
D -->|AI responses| C
C -->|MCP responses| B
B -->|OpenAI format| A
E[Your Authentication<br/>Claude CLI login] -.->|Credentials| C
F[File System<br/>Your Project] -.->|Access| A
style A fill:#e1f5fe
style B fill:#f3e5f5
style C fill:#e8f5e8
style D fill:#fff3e0
style E fill:#fce4ec
style F fill:#f1f8e9
/v1/chat/completions)choices, usage, etc.localhost:8000claude mcp serveTask tool to send prompts to ClaudePOST /v1/chat/completions with OpenAI formattools/call with Task toolchoices arrayTask tool is Claude's gateway for chat-style interactionsโ WORKING SOLUTION - Successfully tested with Cline!
# Clone the repository git clone https://github.com/vanzan01/cline.code.git cd cline.code # Install dependencies npm install # Run the production server (recommended for local use) HOST=127.0.0.1 PORT=8000 AUTH_ENABLED=false npm start # Or simple start (binds to all interfaces) npm start # Or run in development mode with auto-reload npm run dev
That's it! The bridge is now running on http://localhost:8000
# In a new terminal, test with curl: curl -X POST http://localhost:8000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "claude-code", "messages": [{"role": "user", "content": "Hello"}] }'
# Run the minimal POC demo npm run demo:minimal # Or try the chatbot demo # With the bridge running, open demos/chatbot/claude-bridge-chatbot-demo/index.html in your browser
The bridge supports environment variables for production configuration:
PORT=3000 # Server port (default: 8000) HOST=localhost # Server host (default: 0.0.0.0)
AUTH_ENABLED=true # Enable API key validation (default: false) API_KEYS=key1,key2,key3 # Comma-separated list of valid API keys
LOG_LEVEL=debug # Logging level: info, debug (default: info) LOGGING_ENABLED=true # Enable request logging (default: true)
MCP_COMMAND=claude # Claude CLI command (default: claude) MCP_TIMEOUT=15000 # MCP initialization timeout ms (default: 10000)
# Default setup (port 8000, all interfaces) npm start curl http://localhost:8000/health # Custom port PORT=3000 npm start curl http://localhost:3000/health # Localhost only (more secure for development) HOST=localhost PORT=3000 npm start curl http://localhost:3000/health # Production setup HOST=0.0.0.0 PORT=8080 npm start curl http://localhost:8080/health
# Enable authentication with API keys AUTH_ENABLED=true API_KEYS=key1,key2,key3 npm start # Test with valid API key curl -H "Authorization: Bearer key1" http://localhost:8000/health # Test with invalid key (should get 401) curl -H "Authorization: Bearer wrong-key" http://localhost:8000/health # Test without key (should get 401) curl http://localhost:8000/health
# Default logging (info level) npm start curl http://localhost:8000/health # See: [2025-05-27T08:13:13.316Z] GET /health - 200 - 3ms # Debug logging (detailed JSON) LOG_LEVEL=debug npm start curl http://localhost:8000/health # See detailed request info in JSON format # Disable logging LOGGING_ENABLED=false npm start curl http://localhost:8000/health # No request logs (only startup logs)
# Development setup HOST=localhost PORT=3000 LOG_LEVEL=debug npm start # Production-like setup PORT=8080 AUTH_ENABLED=true API_KEYS=prod-key LOG_LEVEL=info npm start curl -H "Authorization: Bearer prod-key" http://localhost:8080/health # High-performance setup (no logging) PORT=8000 LOGGING_ENABLED=false MCP_TIMEOUT=5000 npm start
cline.code/
โโโ src/ # Production implementation
โ โโโ index.js # Application entry point
โ โโโ app.js # Express app configuration
โ โโโ services/ # Business logic
โ โ โโโ mcp/ # MCP client implementation
โ โโโ routes/ # API endpoints
โ โโโ middleware/ # Express middleware
โ โโโ config/ # Configuration (Phase 2)
โโโ demos/ # Working demonstrations
โ โโโ minimal-bridge/ # Minimal POC that works
โ โโโ chatbot/ # Example chatbot using the bridge
โโโ docs/ # Documentation
โ โโโ README.md # Documentation overview
โ โโโ PRODUCTION_UPGRADE_PLAN.md # Roadmap for production
โ โโโ architecture/ # Design specs and diagrams
โโโ tests/ # Test suite (coming soon)
โโโ CHANGELOG.md # Version history
The Claude MCP server exposes a Task tool that enables chat functionality:
tools/call with name: "Task"npm starthttp://localhost:8000 as the OpenAI API endpointMaking it more robust:
๐ Found a bug with Cline?
๐ก Got an idea?
๐ง Want to contribute code?
๐ข Just want to test?
Remember: This project exists to make Claude work perfectly with Cline! ๐
# Clone and setup git clone https://github.com/vanzan01/cline.code.git cd cline.code npm install # Run the production server (one command - handles everything!) npm start # Or run in development mode with auto-reload npm run dev # In another terminal, test it curl http://localhost:8000/health # Test the chat endpoint curl -X POST http://localhost:8000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{"model": "claude-code", "messages": [{"role": "user", "content": "Hello"}]}' # Run tests node tests/integration/openai-compatibility.test.js node tests/manual/basic-functionality.js
See PRODUCTION_UPGRADE_PLAN.md for detailed roadmap.
This project started as my personal challenge, but I'd love to turn it into something the whole community can benefit from!
๐งช Testers:
๐ง Developers:
๐ Writers:
I built this because I love Claude Code and wanted to share it with people who love Cline. The goal is simple: make Claude work perfectly with Cline.
This isn't about building a business or becoming the "official" solution. It's about solving a real problem that Cline users have and doing it in the open where everyone can benefit.
If you contribute something meaningful, I'll make sure you get credit in the README and releases. This is a community effort!
If cline.code saves you time or you'd like to see more tools like this, consider sponsoring me on GitHub!
More coffee = More code = More awesome tools for the community! โโ๐ปโ๐
Even small contributions help keep me motivated to build cool stuff and respond to issues quickly. Plus, sponsors get my eternal gratitude and maybe early access to new experiments! ๐
MIT License - See LICENSE file
TL;DR: Use it, modify it, share it, contribute to it! Just keep the license notice. ๐
vanzan01/cline.code is a public repo on GitHub by vanzan01. ๐ OpenAI-compatible API bridge for Claude.Code via MCP - Enable Cline to use Claude.Code.
It declares the MIT license on GitHub.
Its maker tagged it for macOS, Windows and Linux, or as Docker or cross-platform. That is declared by the maker; Take My Repo has not tested it.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2025-05-29. GitHub counts 0 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.
Reverse engineer anything with agents, from app behavior down to native binaries.

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

Gorilla: Training and Evaluating LLMs for Function Calls (Tool Calls)
A modular, documentation-driven framework using Cursor custom modes (VAN, PLAN, CREATIVE, IMPLEMENT) to provide persistent memory and guide AI through a structured development workflow with visual process maps.
๐ง Context Engineering Research - Not just another agent collection, but using research and context engineering to function as a collective. Hub-and-spoke coordination through Claude Code.

A batteries-included starter for building agentic desktop apps with Pi SDK and configurable providers.
Professional markdown viewer for Windows and macOS. Perfect for reading AI outputs and sharing docs with non-technical staff. No paywalls, no friction.
๐ฏ Professional POE2 trading intelligence via MCP - 11 specialized tools for currency analysis, market signals & arbitrage detection. Claude Code ready!
Never write commit messages again. Auto-checkpoint every change, auto-squash into professional git history. For Claude Code.
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/vanzan01/cline.codeTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.