coder-link
v0.3.0
Published
Coder Link: connect coding tools to any model/provider
Readme
Coder Link (coder-link)
A CLI that links coding tools to models from multiple providers.
Features
- Multi-Provider Support: GLM Coding Plan (Global/China), Kimi 2.5, OpenRouter, NVIDIA, LM Studio (local), Alibaba, ZenMux, and Xiaomi Token Plan
- Interactive Wizard: Friendly onboarding guidance on first launch
- Tool Management: Automatically configures CLI tools with your API credentials
- Quick Launch: Run any configured tool directly with
coder-link run <tool> - MCP Configuration: Easily manage Model Context Protocol services
- Local Storage: All settings stored securely on your machine
- Internationalization: Chinese and English bilingual interface
- Status & Health Check: View current configuration and diagnose issues quickly
Screenshots
Main Menu

Provider Configuration

Coding Tools

Supported Coding Tools
- Claude Code
- OpenCode
- Crush
- Factory Droid
- Kimi (native)
- AMP Code
- Pi CLI
Quick Start
Prerequisite: Node.js 18 or later
Install and Launch
Option 1: Run directly with npx
npx coder-linkOption 2: Install globally with npm
npm install -g coder-link
coder-linkOption 3: Install globally with bun
bun add -g coder-link
coder-linkComplete the Wizard
Once you enter the wizard UI, use Up/Down arrow keys to navigate and press Enter to confirm each action, following the guided initialization flow.
The wizard will help you complete:
- Select UI language (English or Chinese)
- Choose a provider (GLM Coding Plan Global/China, Kimi 2.5, OpenRouter, NVIDIA, Alibaba, ZenMux, Xiaomi, or LM Studio)
- Enter your API key
- Select tools to manage
- Automatically configure selected tools
- Manage MCP services (optional)
Command List
Show help
coder-link -h
coder-link --helpShow version
coder-link -v
coder-link --versionRun the initialization wizard
coder-link initLanguage management
coder-link lang show # Display the current language
coder-link lang set zh_CN # Switch to Chinese
coder-link lang set en_US # Switch to English
coder-link lang --help # Show help for language commandsAPI key management
coder-link auth # Interactively set key
coder-link auth glm_coding_plan_global <token> # Choose Global plan and set key
coder-link auth glm_coding_plan_china <token> # Choose China plan and set key
coder-link auth kimi <token> # Set Kimi API key
coder-link auth openrouter <token> # Set OpenRouter API key
coder-link auth nvidia <token> # Set NVIDIA API key
coder-link auth xiaomi <token> # Set Xiaomi Token Plan API key
coder-link auth revoke # Delete the saved key
coder-link auth reload <tool> # Reload config into a tool
coder-link auth --help # Show help for auth commandsTool management
coder-link tools list # List all supported tools and their status
coder-link tools install <tool> # Install a coding tool
coder-link tools uninstall <tool> # Uninstall a coding toolRun a tool directly
Launch any configured coding tool without entering the interactive menu:
coder-link run droid # Launch Factory Droid with your configured provider
coder-link run claude # Launch Claude Code
coder-link run opencode # Launch OpenCode
coder-link run crush # Launch Crush
coder-link run kimi # Launch Kimi
coder-link run pi # Launch Pi CLI
coder-link run codex # Launch Codex CLI
coder-link run mastra # Launch Mastra Code
coder-link run ob1 # Launch OB1 CLIOptions:
coder-link run droid --new-window # Launch in a new terminal window (Windows only)
coder-link run droid --same-window # Launch in this terminal
coder-link run droid --skip-config # Skip provider config sync, just launch
coder-link run droid --model <model> # Override model to use
coder-link run droid --plan <plan> # Use a specific provider plan
coder-link run droid --api-key <key> # Use a specific API key
coder-link run droid --json # Output as JSON for programmatic useTool aliases: You can use short names like droid for factory-droid, claude for claude-code, and mastracode for mastra.
MCP management
coder-link mcp list # List available MCP services
coder-link mcp installed # List installed MCP services
coder-link mcp install <service> # Install an MCP service
coder-link mcp uninstall <service> # Uninstall an MCP serviceHealth check
coder-link doctor # Inspect system configuration and tool statusConfiguration File
The configuration file is stored at ~/.coder-link/config.yaml:
lang: zh_CN # UI language
plan: glm_coding_plan_global # Plan type: glm_coding_plan_global, glm_coding_plan_china, or kimi
api_key: your-api-key-here # API keyProvider Details
GLM Coding Plan (Global)
- Base URL:
https://api.z.ai/api/anthropic(Claude Code) orhttps://api.z.ai/api/coding/paas/v4(others) - Models: GLM-5, GLM-4.7, GLM-4.6, GLM-4.5-air
- Get your API key from Z.AI Open Platform
GLM Coding Plan (China)
- Base URL:
https://open.bigmodel.cn/api/anthropic(Claude Code) orhttps://open.bigmodel.cn/api/coding/paas/v4(others) - Models: GLM-5, GLM-4.7, GLM-4.6, GLM-4.5-air
- Get your API key from Z.AI Open Platform
OpenRouter
- Base URL:
https://openrouter.ai/api/v1 - Models: Various LLMs including Claude, GPT, and more
- Get your API key from OpenRouter.ai
NVIDIA
- Base URL: Via NVIDIA's API gateway
- Models: Various NVIDIA-hosted models
- Sign up for access at NVIDIA's developer portal
Xiaomi Token Plan (Singapore)
- OpenAI Base URL:
https://token-plan-sgp.xiaomimimo.com/v1 - Anthropic Base URL:
https://token-plan-sgp.xiaomimimo.com/anthropic - Configure with
coder-link auth xiaomi <token>or through Provider Setup.
How It Works
The tool uses a manager pattern where each coding tool has its own manager class that knows how to:
- Read and write the tool's configuration file
- Inject the appropriate API credentials and endpoints
- Detect existing configurations
- Manage MCP (Model Context Protocol) services
When you run coder-link auth <plan> <token> or use the wizard, the tool:
- Saves your API key and plan type to
~/.coder-link/config.yaml - For each selected tool, calls its manager's
loadConfig()method - The manager writes the appropriate configuration to the tool's config file
- MCP services can be installed to extend tool capabilities
MCP Services
MCP (Model Context Protocol) allows coding tools to access external services. Built-in MCP services include:
- filesystem: File system operations
- github: GitHub integration
You can also install custom MCP services through the tool's own marketplace (Claude Code) or manually configure them.
Development
# Clone the repository
git clone https://github.com/HenkDz/coder-link.git
cd coder-link
# Install dependencies
bun install
# Build
bun run build
# Run in development mode
bun run dev
# Lint
bun run lintContributing
We welcome contributions! Please feel free to submit issues or pull requests.
License
MIT
