clitools

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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",
	},
	"antigravity": {
		ID:             "antigravity",
		Name:           "Antigravity",
		Category:       "code",
		Description:    "Google Antigravity IDE — MITM intercept and endpoint redirection",
		DefaultCommand: "antigravity",
		DocsURL:        "https://cloud.google.com/antigravity",
		SettingsFile:   "~/.config/antigravity/mitm.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 ConfigureTool(id string) (string, error)

func DeleteBackup added in v0.4.0

func DeleteBackup(toolId, backupId string) error

DeleteBackup deletes a specific backup file.

func ReadSettingsFile added in v0.4.0

func ReadSettingsFile(toolId string) (map[string]interface{}, error)

ReadSettingsFile reads tool config file as JSON or raw content.

func RestoreBackup added in v0.4.0

func RestoreBackup(toolId, backupId string) error

RestoreBackup restores a backup file over the active config file.

Types

type ApplyRequest added in v0.4.0

type ApplyRequest struct {
	ToolID  string `json:"toolId"`
	BaseURL string `json:"baseUrl,omitempty"`
	APIKey  string `json:"apiKey,omitempty"`
	Model   string `json:"model,omitempty"`
	DryRun  bool   `json:"dryRun,omitempty"`
}

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"`
}

func ListTools

func ListTools() []CliTool

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 ToolConfigStatus added in v0.4.0

type ToolConfigStatus struct {
	Status           string `json:"status"` // "configured", "not_configured", "partial"
	Endpoint         string `json:"endpoint,omitempty"`
	LastConfiguredAt *int64 `json:"lastConfiguredAt,omitempty"`
}

type ToolDetection added in v0.4.0

type ToolDetection struct {
	Installed   bool   `json:"installed"`
	Runnable    bool   `json:"runnable"`
	Version     string `json:"version,omitempty"`
	Command     string `json:"command,omitempty"`
	CommandPath string `json:"commandPath,omitempty"`
	Reason      string `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL