TheDocumentation Index
Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
Use this file to discover all available pages before exploring further.
lap CLI talks to a running LiteLLM Agent Platform deployment and spins up sandboxes on demand. This guide walks you through installing the CLI, authenticating against your platform, and opening your first sandbox session.
Prerequisites
- Node 18 or newer installed on your machine.
- A running LiteLLM Agent Platform deployment with at least one agent configured. If you don’t have one yet, see Self-hosting to set up a local instance.
- The base URL of your platform (e.g.
https://lap.acme.devorhttp://localhost:3000) and a master key.
Setup
Install the lap CLI from source
Clone the repository, install dependencies, and symlink the binary onto your If
PATH:~/.local/bin is not yet on your PATH, add it:If you prefer a system-wide install, use
sudo ln -sf "$PWD/bin/lap.mjs" /usr/local/bin/lap instead.Log in to your platform
Run Config is saved with mode
lap login and enter your platform URL and master key when prompted:0600. To clear it later, run lap logout.List available agents
Verify your connection and see which agents are configured on your platform:This calls
GET /api/v1/managed_agents/agents and prints each agent’s name and harness type. You’ll use the agent name in the next step.Open your first sandbox
Pass the agent name as the argument to Replace
lap:claude-code-cli1 with any agent name from lap agents. You can also pass a UUID.What happens next:lapresolves the name to an agent ID.- A new session is created via
POST /agents/{id}/session. lappolls until the pod is ready.- Your terminal attaches to the sandbox TTY over WebSocket.
Common commands
| Command | Description |
|---|---|
lap <agent-name> | Open a sandbox for the named agent |
lap --agent <name> | Same as above (flag form) |
lap agents | List all agents on the platform |
lap config | Show your current base URL and authentication state |
lap logout | Delete saved config |
Next steps
- Read the full CLI guide for environment overrides and troubleshooting.
- Learn about agents, sessions, and harnesses to understand what’s running in your sandbox.