Skip to content

klim agent

klim agent 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:

TypeWhat it is
marketplacesSources an agent CLI pulls plugins, skills, and MCPs from.
pluginsFirst-party / community extensions installed for a provider.
skillsReusable prompts / playbooks loaded by an agent.
mcpsModel Context Protocol servers — tools an agent can call.
sessionsSaved 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.

Terminal window
klim agent [command] [flags]

Running klim agent with no subcommand prints a summary of every detected entity, grouped by provider.

CommandWhat it does
klim agent listList discovered agent entities; filter by --type, --provider, --installed, --available, --search.
klim agent searchFuzzy search across all entities, or scope with type:query (e.g. plugin:auth).
klim agent launchOpen an agent session with a chosen skill / plugin / saved session.
klim agent marketplaceBrowse / add / remove marketplaces (provider-specific).
klim agent pluginList / install / remove plugins.
klim agent skillBrowse skills.
klim agent mcpList / install / remove MCP servers.
klim agent sessionList, resume, or delete agent sessions.
klim agent doctorDiagnose provider detection and cache freshness.
klim agent refreshInvalidate the agents scan cache and rescan from disk.

These flags apply to most subcommands; individual command pages note any extras.

FlagDescription
--providerLimit to one provider: claude-code, copilot-cli, or mcp-registry.
--typeFilter by entity type: `marketplace
--installedShow only installed entities (plugins / MCPs).
--availableShow only available (non-installed) catalog entries.
--searchSame as klim agent search <query>.
--refreshIgnore the cache and rescan from disk.
--outputtext (default), json, or yaml.
Terminal window
# Survey everything on this host
klim agent
# Just Claude Code's MCP servers
klim agent list --provider claude-code --type mcp
# Fuzzy search across everything
klim agent search react
# Scoped search — only plugins
klim agent search plugin:auth
# Launch a saved session
klim agent launch --session "claude:home%2Fuser%2Frepo"
# Pipe to jq / yq
klim agent list --output json | jq '.entities[] | select(.type=="plugin")'
klim agent list --output yaml > agents-snapshot.yaml

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:

ProviderLayout
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 registryA bundled catalog of well-known MCP servers, refreshable via klim agent refresh.

The scan is cached per-host (~/.klim/cache/agents-cache.yaml) so repeated runs are fast; pass --refresh to force a rescan.