| name | claude-code-best |
| description | Expert in using Claude Code Best (CCB) - a production-grade, debuggable fork of Anthropic's Claude Code CLI with enterprise features |
| triggers | ["how do I use Claude Code Best","set up CCB with custom API provider","configure claude code best features","debug claude code best project","use pipe IPC in CCB","enable langfuse monitoring in claude code","set up remote control for claude code","use web search in claude code best"] |
claude-code-best
Skill by ara.so — Claude Code Skills collection.
Claude Code Best (CCB) is a reverse-engineered, production-ready implementation of Anthropic's Claude Code CLI. It's written in TypeScript, runs on Bun or Node.js, and provides enterprise-grade features including multi-instance orchestration, ACP protocol support, Langfuse monitoring, remote control, web search, voice mode, and computer/browser automation.
What It Does
CCB is an AI coding agent terminal interface that:
- Runs Claude (or compatible models) in your terminal with full file system access
- Supports multi-instance coordination via Pipe IPC and LAN discovery
- Integrates with Zed, Cursor, and other IDEs via ACP protocol
- Provides enterprise monitoring (Langfuse, Sentry, GrowthBook)
- Offers web search, voice input, computer/browser control
- Works with any Anthropic-compatible API provider (OpenAI, Gemini, etc.)
Installation
From NPM (Recommended)
npm i -g claude-code-best
ccb
ccb-bun
ccb update
From Source
Prerequisites:
curl -fsSL https://bun.sh/install | bash
exec $SHELL
bun --version
bun upgrade
Clone and run:
git clone https://github.com/claude-code-best/claude-code.git
cd claude-code
bun install
bun run dev
bun run build
node dist/cli.js
bun dist/cli.js
Configuration
Login to API Provider
On first run, enter /login in the REPL:
ccb
/login
Choose provider type:
- Anthropic Compatible - any Claude-compatible API
- OpenAI Compatible - OpenAI or compatible services
- Gemini Compatible - Google Gemini API
Required fields:
| Field | Description | Example |
|---|
| Base URL | API endpoint | https://api.anthropic.com |
| API Key | Auth token | $ANTHROPIC_API_KEY |
| Haiku Model | Fast model | claude-haiku-4-5-20251001 |
| Sonnet Model | Balanced model | claude-sonnet-4-6 |
| Opus Model | Premium model | claude-opus-4-6 |
Use Tab/Shift+Tab to navigate, Enter to confirm.
Environment Variables
FEATURE_BUDDY=1 ccb
CLAUDE_BRIDGE_BASE_URL=https://remote-control.claude-code-best.win/ \
CLAUDE_BRIDGE_OAUTH_TOKEN=$YOUR_TOKEN \
ccb --remote-control
LANGFUSE_PUBLIC_KEY=$YOUR_KEY \
LANGFUSE_SECRET_KEY=$YOUR_SECRET \
LANGFUSE_HOST=https://cloud.langfuse.com \
ccb
ccb
Key Commands
In REPL
/login
/pipes
/poor
/dream
/voice doubao
/teach-me <topic>
/teach-me Claude Code architecture
/teach-me React Ink terminal rendering --level beginner
/teach-me Tool system --resume
CLI Flags
ccb --remote-control
ccb --channels plugin:name@marketplace
bun run dev:inspect
Usage Patterns
Basic Usage
import { executeShellCommand } from './tools/bash';
const result = await executeShellCommand({
command: 'ls -la',
workingDir: process.cwd()
});
import { PipeManager } from './ipc/pipe-manager';
const pipeManager = new PipeManager();
await pipeManager.broadcast({
type: 'message',
content: 'Task complete'
});
import { MemoryService } from './memory/service';
const memory = new MemoryService();
await memory.extract({
sessionId: 'current',
content: 'User prefers TypeScript over JavaScript'
});
Remote Control Setup
docker run -d \
-p 3000:3000 \
-e OAUTH_SECRET=$YOUR_SECRET \
claude-code-remote-control
CLAUDE_BRIDGE_BASE_URL=http://localhost:3000 \
CLAUDE_BRIDGE_OAUTH_TOKEN=$YOUR_TOKEN \
ccb --remote-control
Web Search Integration
export BING_SEARCH_API_KEY=$YOUR_BING_KEY
# or
export BRAVE_SEARCH_API_KEY=$YOUR_BRAVE_KEY
ccb
# In session, ask: "search for latest TypeScript features"
Langfuse Monitoring
export LANGFUSE_PUBLIC_KEY=pk-lf-xxx
export LANGFUSE_SECRET_KEY=sk-lf-xxx
export LANGFUSE_HOST=https://cloud.langfuse.com
ccb
Computer Use (Screen Control)
FEATURE_COMPUTER_USE=1 ccb
Chrome Automation
npx @modelcontextprotocol/create-server chrome-use
ccb
Development Patterns
Project Structure
claude-code/
├── src/
│ ├── cli.ts # Entry point
│ ├── tools/ # Built-in tools (bash, read_file, etc.)
│ ├── ipc/ # Pipe IPC for multi-instance
│ ├── memory/ # Memory extraction & retrieval
│ ├── providers/ # API provider adapters
│ ├── ui/ # React Ink terminal components
│ └── features/ # Feature flag implementations
├── dist/ # Build output (450+ chunks)
├── build.ts # Bun build script
└── package.json
Adding a Custom Tool
import { z } from 'zod';
export const MyCustomToolSchema = z.object({
input: z.string().describe('Tool input parameter')
});
export async function executeMyCustomTool(
params: z.infer<typeof MyCustomToolSchema>
): Promise<string> {
return `Processed: ${params.input}`;
}
export const tools = [
{
name: 'my_custom_tool',
description: 'Does something useful',
input_schema: MyCustomToolSchema,
execute: executeMyCustomTool
},
];
Debugging in VS Code
{
"configurations": [
{
"name": "Attach to Bun (TUI debug)",
"type": "bun",
"request": "attach",
"url": "ws://localhost:8888"
}
]
}
Steps:
- Terminal:
bun run dev:inspect
- Set breakpoints in
src/
- VS Code: F5 → Select "Attach to Bun (TUI debug)"
Common Issues
Installation Fails
npm rm -g claude-code-best
npm i -g claude-code-best@5.0.0
npm i -g claude-code-best
Bun Not Found After Install
exec $SHELL
source ~/.zshrc
Feature Not Working
FEATURE_NAME=1 ccb
FEATURE_BUDDY=1 \
FEATURE_FORK_SUBAGENT=1 \
FEATURE_WEB_SEARCH=1 \
ccb
API Connection Issues
/login
Build Errors
bun upgrade
rm -rf node_modules bun.lockb
bun install
bun run build
Remote Control Not Connecting
echo $CLAUDE_BRIDGE_BASE_URL
echo $CLAUDE_BRIDGE_OAUTH_TOKEN
CLAUDE_BRIDGE_BASE_URL=https://remote-control.claude-code-best.win/ \
CLAUDE_BRIDGE_OAUTH_TOKEN=test-my-key \
ccb --remote-control
Advanced Configuration
Multi-Instance Pipe IPC
ccb
ccb
/pipes
LAN Cross-Machine Discovery
FEATURE_LAN_DISCOVERY=1 ccb
FEATURE_LAN_DISCOVERY=1 ccb
Channels (External Notifications)
ccb --channels plugin:slack@marketplace
Custom Memory Optimization
/dream
FEATURE_AUTO_DREAM=1 ccb
Resources
Example Session
$ ccb
Claude Code Best v5.0.0
You: I need to analyze all TypeScript files in src/ and create a dependency graph