klim agents
klim agents is klim’s view into the AI agent ecosystem on your machine.
It cuts across multiple agent CLIs — currently Claude Code and
GitHub Copilot CLI plus the MCP registry — and surfaces five
entity types under a single set of subcommands:
| Type | What it is |
|---|---|
| marketplaces | Sources an agent CLI pulls plugins, skills, and MCPs from. |
| plugins | First-party / community extensions installed for a provider. |
| skills | Reusable prompts / playbooks loaded by an agent. |
| mcps | Model Context Protocol servers — tools an agent can call. |
| sessions | Saved or active conversations you can resume / inspect. |
The same data also drives the TUI’s Agents tab — see the Agents Tab guide for the interactive view.
klim agents [command] [flags]Running klim agents with no subcommand prints a summary of every
detected entity, grouped by provider.
Subcommands
Section titled “Subcommands”| Command | What it does |
|---|---|
klim agents list | List discovered agent entities; filter by --type, --provider, --installed, --available, --search. |
klim agents search | Fuzzy search across all entities, or scope with type:query (e.g. plugin:auth). |
klim agents launch | Open an agent session with a chosen skill / plugin / saved session. |
klim agents marketplaces | Browse / add / remove marketplaces (provider-specific). |
klim agents plugins | List / install / remove plugins. |
klim agents skills | Browse skills. |
klim agents mcps | List / install / remove MCP servers. |
klim agents sessions | List, resume, or delete agent sessions. |
klim agents doctor | Diagnose provider detection and cache freshness. |
klim agents refresh | Invalidate the agents scan cache and rescan from disk. |
Global flags
Section titled “Global flags”These flags apply to most subcommands; individual command pages note any extras.
| Flag | Description |
|---|---|
--provider | Limit to one provider: claude-code, copilot-cli, or mcp-registry. |
--type | Filter by entity type: `marketplace |
--installed | Show only installed entities (plugins / MCPs). |
--available | Show only available (non-installed) catalog entries. |
--search | Same as klim agents search <query>. |
--refresh | Ignore the cache and rescan from disk. |
--output | text (default), json, or yaml. |
Examples
Section titled “Examples”# Survey everything on this hostklim agents
# Just Claude Code's MCP serversklim agents list --provider claude-code --type mcp
# Fuzzy search across everythingklim agents search react
# Scoped search — only pluginsklim agents search plugin:auth
# Launch a saved sessionklim agents launch --session "claude:home%2Fuser%2Frepo"
# Pipe to jq / yqklim agents list --output json | jq '.entities[] | select(.type=="plugin")'klim agents list --output yaml > agents-snapshot.yamlWhere klim looks
Section titled “Where klim looks”klim doesn’t speak to remote APIs to enumerate agent state — every provider has a well-known on-disk layout under the user profile, and klim parses those directly:
| Provider | Layout |
|---|---|
| Claude Code | ~/.config/claude-code/ (Linux/macOS), %APPDATA%\Claude\ (Windows). Sessions, plugins, MCPs, marketplaces. |
| GitHub Copilot CLI | ~/.config/github-copilot/ and ~/.copilot/. Plugins, MCPs, session history. |
| MCP registry | A bundled catalog of well-known MCP servers, refreshable via klim agents refresh. |
The scan is cached per-host (~/.klim/cache/agents-cache.yaml) so
repeated runs are fast; pass --refresh to force a rescan.
See also
Section titled “See also”- Agents Tab guide — interactive TUI walkthrough
klim agents launch— open a session without remembering the provider’s CLI flags