Local managed agents provide cloud-style APIs while running on your local infrastructure.Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start
How It Works
Local managed agents provide the same APIs as cloud providers while keeping data on your infrastructure.Security: Sandboxed Package Installation
Local managed agents enforce sandbox-first security for package installation by default. Whenpackages are specified, three resolution paths exist:
- Compute Provider (Recommended): Attach
compute="docker"to install packages in a sandbox - Host Installation (Development Only): Set
host_packages_ok=Truefor trusted environments - No Packages: Remove
packagesconfiguration to avoid installation
Compute Tool Bridging
When a compute provider is attached, four shell-based tools automatically execute inside the compute instance instead of on the host: Bridged tools:execute_command, read_file, write_file, list_files
Configuration Options
LocalManagedConfig Fields
| Option | Type | Default | Description |
|---|---|---|---|
model | str | "gpt-4o" | LLM model to use |
system | str | "You are a helpful coding assistant." | System prompt |
name | str | "Agent" | Agent display name |
tools | List[str] | Default tools | Enabled tool names |
packages | Dict[str, List[str]] | None | Packages to install (e.g. {"pip": ["pandas"]}) |
networking | Dict[str, Any] | {"type": "unrestricted"} | Network access policy |
host_packages_ok | bool | False | Security opt-out. When True, permits pip install on host when no compute provider is attached |
working_dir | str | "" | Working directory inside the sandbox |
env | Dict[str, str] | {} | Extra environment variables |
Session Management
Persistent Sessions
retrieve_session() always returns all 4 keys (id, status, title, usage) with sensible defaults when no session exists.Resume Sessions
Multi-turn Conversations
Usage Tracking
Best Practices
Configure Security Appropriately
Configure Security Appropriately
Use compute providers like
compute="docker" for package installation. Only set host_packages_ok=True in trusted developer environments. Packages require a sandbox by default to prevent security risks.Handle ManagedSandboxRequired
Handle ManagedSandboxRequired
Session Persistence
Session Persistence
Save session IDs using
save_ids() for resuming conversations. Store IDs in a database or file system for persistence across application restarts.Tool Configuration
Tool Configuration
Only enable tools your agent needs. When using compute providers, shell tools automatically execute in the sandbox for security.
Related
Managed Agents
Overview of managed agent concepts
Docker Compute
Containerized execution environments
SessionInfo Schema
Unified session schema reference

