Documentation Index
Fetch the complete documentation index at: https://allhandsai-feat-encrypted-secrets-in-transit.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
A ready-to-run example is available here!The Settings and Secrets API provides REST endpoints for managing agent configuration and custom secrets through a local agent server. This is the recommended pattern for frontend clients that need to:
- Store secrets securely via the Settings API (encrypted at rest)
- Pass encrypted secrets when starting conversations via
secrets_encrypted=True - Never have access to plaintext secrets after initial storage
Key Concepts
Settings Endpoints
The agent server exposes settings management via REST:- GET /api/settings - Retrieve current settings
- PATCH /api/settings - Update settings with a partial diff
Encrypted Secrets for Starting Conversations
Frontend clients use theX-Expose-Secrets: encrypted header to get cipher-encrypted secrets:
Custom Secrets CRUD Operations
Custom secrets can be created, listed, retrieved, and deleted:Secret Name Validation
Secret names must follow environment variable naming conventions:- Start with a letter (a-z, A-Z)
- Contain only letters, numbers, and underscores
- Be 1-64 characters long
Ready-to-Run Example
This example demonstrates the complete encrypted secrets workflow:- Store LLM API key via
PATCH /api/settings(encrypted at rest) - Fetch settings with
X-Expose-Secrets: encryptedheader - Start conversation via
POST /api/conversationswithsecrets_encrypted=True - Poll conversation state and verify agent task completion
- Test custom secrets CRUD operations
examples/02_remote_agent_server/12_settings_and_secrets_api.py
The model name should follow the LiteLLM convention:
provider/model_name (e.g., anthropic/claude-sonnet-4-5-20250929, openai/gpt-4o).
The LLM_API_KEY should be the API key for your chosen provider.Next Steps
- Local Agent Server - Run agents through a local HTTP server
- Docker Sandboxed Server - Run server in Docker for isolation
- Agent Server Overview - Architecture and implementation details

