Documentation
¶
Index ¶
- Variables
- func ApplyTool(req ApplyRequest) (map[string]interface{}, error)
- func ConfigureTool(id string) (string, error)
- func DeleteBackup(toolId, backupId string) error
- func DisconnectTool(toolId string) error
- func ReadSettingsFile(toolId string) (map[string]interface{}, error)
- func RestoreBackup(toolId, backupId string) error
- func SaveToolConfig(toolId string, content string) error
- type ApplyRequest
- type BackupEntry
- type CliTool
- type ToolBatchStatus
- type ToolBatchStatusMap
- type ToolConfigDetail
- type ToolConfigStatus
- type ToolDetection
Constants ¶
This section is empty.
Variables ¶
var Registry = map[string]CliTool{
"claude": {
ID: "claude",
Name: "Claude Code",
Category: "code",
Description: "Anthropic Claude Code CLI — ANTHROPIC_BASE_URL points to GoRoute",
DefaultCommand: "claude",
DocsURL: "https://docs.anthropic.com/en/docs/claude-code/overview",
SettingsFile: "~/.claude/settings.json",
},
"codex": {
ID: "codex",
Name: "OpenAI Codex CLI",
Category: "code",
Description: "OpenAI Codex CLI — OpenAI-compatible base URL targets GoRoute",
DefaultCommand: "codex",
DocsURL: "https://github.com/openai/codex",
SettingsFile: "~/.codex/config.toml",
},
"opencode": {
ID: "opencode",
Name: "OpenCode CLI",
Category: "code",
Description: "OpenCode Terminal & TUI coding agent with GoRoute provider engine",
DefaultCommand: "opencode",
DocsURL: "https://github.com/opencode-ai/opencode",
SettingsFile: "~/.config/opencode/opencode.json",
},
"openclaw": {
ID: "openclaw",
Name: "Open Claw",
Category: "autonomous",
Description: "OpenClaw autonomous agent with universal tool calling and ACP support",
DefaultCommand: "openclaw",
DocsURL: "https://github.com/openclaw/openclaw",
SettingsFile: "~/.openclaw/config.json",
},
"hermes": {
ID: "hermes",
Name: "Hermes Agent",
Category: "autonomous",
Description: "NousResearch Hermes Agent — multi-model terminal reasoning & delegation",
DefaultCommand: "hermes",
DocsURL: "https://github.com/NousResearch/Hermes-Agent",
SettingsFile: "~/.hermes/config.yaml",
},
"goose": {
ID: "goose",
Name: "Goose",
Category: "autonomous",
Description: "Block Goose autonomous developer agent CLI with ACP support",
DefaultCommand: "goose",
DocsURL: "https://github.com/block/goose",
SettingsFile: "~/.config/goose/config.yaml",
},
"prime": {
ID: "prime",
Name: "Prime Agent",
Category: "autonomous",
Description: "Self-improving RLM coding harness with OpenAI-compatible provider support",
DefaultCommand: "prime",
DocsURL: "https://github.com/prime-agent/prime",
SettingsFile: "~/.prime/config.json",
},
"cursor": {
ID: "cursor",
Name: "Cursor",
Category: "code",
Description: "Cursor IDE with custom OpenAI base URL configured to GoRoute",
DefaultCommand: "cursor",
DocsURL: "https://cursor.com",
SettingsFile: "~/.cursor/settings.json",
},
"cline": {
ID: "cline",
Name: "Cline",
Category: "code",
Description: "Autonomous coding agent in VS Code / VSCodium",
DefaultCommand: "cline",
DocsURL: "https://github.com/cline/cline",
SettingsFile: "~/.cline/config.json",
},
"roo": {
ID: "roo",
Name: "Roo Code",
Category: "code",
Description: "Roo Code multi-role AI agent for VS Code",
DefaultCommand: "roo",
DocsURL: "https://github.com/RooVetGit/Roo-Code",
SettingsFile: "~/.roo/config.json",
},
"aider": {
ID: "aider",
Name: "Aider",
Category: "code",
Description: "AI pair programming in your terminal with Git integration",
DefaultCommand: "aider",
DocsURL: "https://aider.chat",
SettingsFile: "~/.aider.conf.yml",
},
"continue": {
ID: "continue",
Name: "Continue",
Category: "code",
Description: "Open-source AI code assistant for VS Code and JetBrains",
DefaultCommand: "continue",
DocsURL: "https://continue.dev",
SettingsFile: "~/.continue/config.json",
},
"qwen": {
ID: "qwen",
Name: "Qwen Code",
Category: "code",
Description: "Alibaba Qwen Code CLI terminal assistant",
DefaultCommand: "qwen-code",
DocsURL: "https://github.com/QwenLM/Qwen",
SettingsFile: "~/.qwen/config.json",
},
"droid": {
ID: "droid",
Name: "Droid (Factory)",
Category: "code",
Description: "Factory Droid CLI agent with custom model routing",
DefaultCommand: "droid",
DocsURL: "https://factory.ai",
SettingsFile: "~/.factory/settings.json",
},
"kilo": {
ID: "kilo",
Name: "Kilo Code",
Category: "code",
Description: "Kilo terminal agent with GoRoute proxy backend",
DefaultCommand: "kilocode",
DocsURL: "https://kilo.ai",
SettingsFile: "~/.local/share/kilo/auth.json",
},
"devin": {
ID: "devin",
Name: "Devin CLI",
Category: "autonomous",
Description: "Cognition Devin terminal agent with custom endpoint",
DefaultCommand: "devin",
DocsURL: "https://devin.ai",
SettingsFile: "~/.config/devin/config.json",
},
"grok-build": {
ID: "grok-build",
Name: "Grok Build",
Category: "code",
Description: "xAI Grok Build terminal developer CLI",
DefaultCommand: "grok-build",
DocsURL: "https://x.ai",
SettingsFile: "~/.config/grok-build/config.json",
},
"windsurf": {
ID: "windsurf",
Name: "Windsurf",
Category: "code",
Description: "Codeium Windsurf IDE with custom model routing via GoRoute",
DefaultCommand: "windsurf",
DocsURL: "https://codeium.com/windsurf",
SettingsFile: "~/.codeium/windsurf/settings.json",
},
"zcode": {
ID: "zcode",
Name: "ZCode (GLM Coding Plan)",
Category: "code",
Description: "Local ZCode app-server backend with GoRoute upstream",
DefaultCommand: "zcode",
DocsURL: "https://zcode.z.ai",
SettingsFile: "~/.zcode/config.json",
},
"copilot": {
ID: "copilot",
Name: "GitHub Copilot",
Category: "code",
Description: "GitHub Copilot Chat with COPILOT_PROVIDER_BASE_URL support",
DefaultCommand: "copilot",
DocsURL: "https://code.visualstudio.com/docs/copilot/overview",
SettingsFile: "~/.config/github-copilot/hosts.json",
},
"kiro": {
ID: "kiro",
Name: "Kiro AI",
Category: "code",
Description: "Amazon Kiro — AI-powered IDE with MITM intercept",
DefaultCommand: "kiro",
DocsURL: "https://kiro.aws",
SettingsFile: "~/.kiro/config.json",
},
"custom": {
ID: "custom",
Name: "Custom CLI",
Category: "code",
Description: "Generic OpenAI-compatible CLI or SDK configuration generator",
DefaultCommand: "",
DocsURL: "https://goroute.dev/docs/cli-tools",
SettingsFile: "~/.goroute/custom-tools.json",
},
"forge": {
ID: "forge",
Name: "ForgeCode",
Category: "code",
Description: "ForgeCode coding agent CLI — custom provider via .forge.toml",
DefaultCommand: "forge",
DocsURL: "https://github.com/antinomyhq/forge",
SettingsFile: "~/.forge.toml",
},
"jcode": {
ID: "jcode",
Name: "jcode",
Category: "code",
Description: "jcode terminal coding agent — OpenAI-compatible CLI",
DefaultCommand: "jcode",
DocsURL: "https://github.com/1jehuang/jcode",
SettingsFile: "~/.jcode/config.json",
},
"codewhale": {
ID: "codewhale",
Name: "CodeWhale",
Category: "code",
Description: "CodeWhale — Rust-based coding agent CLI with OPENAI_BASE_URL support",
DefaultCommand: "codewhale",
DocsURL: "https://github.com/Hmbown/CodeWhale",
SettingsFile: "~/.codewhale/config.toml",
},
"smelt": {
ID: "smelt",
Name: "Smelt",
Category: "code",
Description: "Smelt coding agent CLI — OpenAI-compatible agent",
DefaultCommand: "smelt",
DocsURL: "https://github.com/leonardcser/smelt",
SettingsFile: "~/.smelt/config.json",
},
"pi": {
ID: "pi",
Name: "Pi",
Category: "code",
Description: "Pi coding agent CLI — lightweight terminal AI",
DefaultCommand: "pi",
DocsURL: "https://github.com/badlogic/pi",
SettingsFile: "~/.pi/config.json",
},
"crush": {
ID: "crush",
Name: "Crush",
Category: "code",
Description: "Crush coding agent CLI — terminal AI agent by Charm",
DefaultCommand: "crush",
DocsURL: "https://github.com/charmbracelet/crush",
SettingsFile: "~/.config/crush/crush.json",
},
"zed": {
ID: "zed",
Name: "Zed",
Category: "code",
Description: "Zed code editor — built-in agent through an OpenAI-compatible provider",
DefaultCommand: "zed",
DocsURL: "https://zed.dev/docs/ai/llm-providers#openai-api-compatible",
SettingsFile: "~/.config/zed/settings.json",
},
"interpreter": {
ID: "interpreter",
Name: "Open Interpreter",
Category: "autonomous",
Description: "Open Interpreter — autonomous coding agent CLI with --api_base flag",
DefaultCommand: "interpreter",
DocsURL: "https://docs.openinterpreter.com/",
SettingsFile: "~/.open-interpreter/config.yaml",
},
"omp": {
ID: "omp",
Name: "Oh My Pi",
Category: "autonomous",
Description: "Oh My Pi terminal coding agent via GoRoute",
DefaultCommand: "omp",
DocsURL: "https://github.com/can1357/oh-my-pi",
SettingsFile: "~/.omp/config.json",
},
"letta": {
ID: "letta",
Name: "Letta CLI",
Category: "autonomous",
Description: "Letta CLI — AI agent with persistent memory and tool use",
DefaultCommand: "letta",
DocsURL: "https://docs.letta.com",
SettingsFile: "~/.letta/config.json",
},
"warp": {
ID: "warp",
Name: "Warp AI",
Category: "autonomous",
Description: "Warp AI terminal — BYOK desktop app with partial base URL support",
DefaultCommand: "warp",
DocsURL: "https://docs.warp.dev/",
SettingsFile: "~/.warp/settings.json",
},
"deepseek-tui": {
ID: "deepseek-tui",
Name: "DeepSeek TUI",
Category: "code",
Description: "DeepSeek TUI terminal coding client",
DefaultCommand: "deepseek",
DocsURL: "https://github.com/deepseek-ai",
SettingsFile: "~/.config/deepseek-tui/config.toml",
},
}
Functions ¶
func ApplyTool ¶ added in v0.4.0
func ApplyTool(req ApplyRequest) (map[string]interface{}, error)
ApplyTool executes configuration with automated backup and state tracking.
func ConfigureTool ¶
func DeleteBackup ¶ added in v0.4.0
DeleteBackup deletes a specific backup file.
func DisconnectTool ¶ added in v0.7.0
DisconnectTool removes GoRoute configurations from the agent's settings file and restores defaults.
func ReadSettingsFile ¶ added in v0.4.0
ReadSettingsFile reads tool config file as JSON or raw content.
func RestoreBackup ¶ added in v0.4.0
RestoreBackup restores a backup file over the active config file.
func SaveToolConfig ¶ added in v0.7.0
SaveToolConfig writes new raw content to the agent's settings file with an automatic backup.
Types ¶
type ApplyRequest ¶ added in v0.4.0
type BackupEntry ¶ added in v0.4.0
type BackupEntry struct {
BackupID string `json:"backupId"`
Tool string `json:"tool"`
Path string `json:"path"`
Filename string `json:"filename"`
CreatedAt string `json:"createdAt"`
SizeBytes int64 `json:"sizeBytes"`
}
func BackupConfigFile ¶ added in v0.4.0
func BackupConfigFile(toolId, filePath string) (*BackupEntry, error)
BackupConfigFile saves a timestamped copy of the config file.
func ListBackups ¶ added in v0.4.0
func ListBackups(toolId string) ([]BackupEntry, error)
ListBackups returns all backups for a given tool (or all tools if empty).
type CliTool ¶
type CliTool struct {
ID string `json:"id"`
Name string `json:"name"`
Category string `json:"category"` // "code", "autonomous", "acp"
Description string `json:"description"`
DefaultCommand string `json:"default_command"`
DocsURL string `json:"docs_url"`
SettingsFile string `json:"settings_file"`
Detected bool `json:"detected"`
Runnable bool `json:"runnable"`
Configured bool `json:"configured"`
Version string `json:"version,omitempty"`
}
type ToolBatchStatus ¶ added in v0.4.0
type ToolBatchStatus struct {
Detection ToolDetection `json:"detection"`
Config ToolConfigStatus `json:"config"`
Error string `json:"error,omitempty"`
}
func DetectTool ¶ added in v0.4.0
func DetectTool(toolId string) (*ToolBatchStatus, error)
DetectTool probes a single tool.
type ToolBatchStatusMap ¶ added in v0.4.0
type ToolBatchStatusMap map[string]ToolBatchStatus
func GetAllStatuses ¶ added in v0.4.0
func GetAllStatuses() (ToolBatchStatusMap, error)
GetAllStatuses scans all registered CLI tools in parallel and checks runtime and config.
type ToolConfigDetail ¶ added in v0.7.0
type ToolConfigDetail struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Category string `json:"category"`
DocsURL string `json:"docs_url"`
SettingsFile string `json:"settings_file"`
Exists bool `json:"exists"`
Configured bool `json:"configured"`
Detected bool `json:"detected"`
Runnable bool `json:"runnable"`
Version string `json:"version,omitempty"`
Content string `json:"content"`
IsJSON bool `json:"is_json"`
Backups []BackupEntry `json:"backups"`
}
ToolConfigDetail holds complete inspection information for a CLI agent.
func GetToolConfigDetail ¶ added in v0.7.0
func GetToolConfigDetail(toolId string) (*ToolConfigDetail, error)
GetToolConfigDetail retrieves the live configuration file, detection status, and backup history.