MCPcopy Index your code
hub / github.com/LiteLLM-Labs/litellm-agent-control-plane

github.com/LiteLLM-Labs/litellm-agent-control-plane @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3,761 symbols 10,110 edges 512 files 56 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LiteLLM Agent Control Plane

1 place to call all your agents - OpenCode, Hermes, Claude Managed Agents, Cursor Agents API, Deep Agents.

Discord

LiteLLM Agent Platform dashboard

LiteLLM Agent Control Plane sits on top of any runtime. Pick a runtime, create an agent, give your team one UI.

It manages:

  • Unified API across runtimes - one API to create and run agents, regardless of the runtime underneath
  • Access - developers create and run agents here, no Bedrock or Anthropic console access required
  • Session management - persistent agent sessions across runs
  • CRON schedules - run agents on a schedule
  • Memory - agents remember context across sessions

Quick Start

Prerequisite: Docker Desktop.

docker compose --profile opencode up

Open http://localhost:4000 and sign in with the master key (sk-local by default). Compose starts the LiteLLM Agent Platform web/API service, a Postgres database, the OpenCode template runtime, and registers local-opencode in the UI automatically.

To start only the base LAP stack:

docker compose up

To start other template runtime profiles and add them to the UI automatically:

docker compose --profile deepagents up
docker compose --profile hermes up
docker compose --profile openclaw up
docker compose --profile opencode --profile deepagents up

Profiles register local-opencode, local-deepagents, local-hermes, and local-openclaw through the LAP API after the services are healthy. Add provider credentials in Settings before running agents against a hosted model provider.

Usage: Create an Agent

1. Make an agent in the UI

Create agent screen

2. Select tools and skills to connect to your agent

Select tools and skills

3. Use your agent

Select your agent and the runtime you want to run it on.

Run agent on a runtime

Supported Agent Runtimes

  • Claude Managed Agents
  • Cursor Agents API
  • OpenCode Agents
  • OpenClaw Agents
  • Deep Agents
  • Hermes Agent

Contributing

PRs welcome. See docs/engineering/contributing.mdx.

Extension points exported contracts — how you extend this code

RuntimeAdapter (Interface)
(no doc) [4 implementers]
src/sdk/providers/base/runtime.rs
BaseCallback (Interface)
(no doc) [1 implementers]
src/callbacks/base.rs
ParsedSchedule (Interface)
(no doc)
src/ui/src/components/schedule-editor.tsx
BaseAnthropicMessagesTransformation (Interface)
(no doc) [2 implementers]
src/sdk/providers/base/anthropic_messages.rs
ScheduleEditorProps (Interface)
(no doc)
src/ui/src/components/schedule-editor.tsx
ModelEndpoint (Interface)
(no doc) [2 implementers]
src/sdk/providers/base/models.rs
McpVariable (Interface)
(no doc)
src/ui/src/components/integration-dialog.tsx
Transformation (Interface)
(no doc) [2 implementers]
src/sdk/providers/base/mod.rs

Core symbols most depended-on inside this repo

get
called by 589
src/sdk/agents/client.rs
is_empty
called by 286
src/mcp/registry.rs
get
called by 188
src/sdk/providers/base/mod.rs
push
called by 172
src/sdk/agents/events.rs
execute
called by 114
templates/opencode/src/sandbox.mjs
request_json
called by 94
tests/managed_agents_support/mod.rs
cn
called by 84
src/ui/src/lib/utils.ts
req
called by 82
src/ui/src/lib/api.ts

Shape

Function 2,833
Method 399
Class 378
Interface 74
Route 49
Enum 28

Languages

Rust67%
TypeScript24%
Python8%

Modules by API surface

src/ui/src/lib/api.ts149 symbols
templates/openclaw/src/server.py92 symbols
templates/pydantic-deepagents/src/server.py79 symbols
templates/hermes/src/server.py66 symbols
templates/deepagents/src/server.py66 symbols
src/ui/src/lib/agent-builder.ts35 symbols
src/ui/src/app/mcp-servers/page.tsx32 symbols
src/ui/src/app/chat/page.tsx31 symbols
src/ui/src/app/observability/logs/page.tsx29 symbols
src/ui/src/app/agents/new/page.tsx29 symbols
src/ui/src/app/agents/teams-app-flow.tsx28 symbols
src/ui/src/app/agents/page.tsx26 symbols

Datastores touched

litellm_agentsDatabase · 1 repos
litellm_rust_managed_agents_testDatabase · 1 repos

For agents

$ claude mcp add litellm-agent-control-plane \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact