When you customize agent code (write your own
xpander_handler.py), your agent automatically becomes containerized when you run xpander deploy. See Agent Containers for the code-first workflow.How It Works
Build your agent visually in Workbench:- Configure in UI: Set LLM model, system prompt, tools, knowledge bases
- Click Deploy: Agent runs on serverless agent-workers
- Invoke: Use REST API, SDK, Slack, webhooks, or any integration
- xpander Cloud: Managed agent-workers that auto-scale
- Self-Hosted: Deploy agent-workers to your own Kubernetes cluster
1
Build Agent in Workbench
Configure your agent using the visual interface:
- LLM Settings: Choose model (GPT-5, Claude Sonnet 4.5, etc.)
- Instructions: Define agent role, goals, and behavior
- Connectors: Add tools (Slack, GitHub, Google, etc.)
- Knowledge Bases: Upload documents for RAG
- Memory: Enable user memories and session storage
2
Deploy from Workbench
Click Deploy in Workbench.Your agent automatically runs on serverless agent-workers.No Dockerfile, no CLI commands, no code files needed.
3
Invoke from Anywhere
Call your agent via REST API, SDK, Slack, webhooks, or any integration:
Benefits
Zero Code
Build agents visually without writing code
Zero Infrastructure
No containers, servers, or Kubernetes to manage
Instant Deployment
Deploy from Workbench in seconds
Auto-Scaling
Agent-workers automatically scale based on load
Serverless vs Containers
| Feature | Serverless (No Code) | Containers (Code-First) |
|---|---|---|
| How you build | Workbench UI only | Write xpander_handler.py code |
| Deployment | Click Deploy in Workbench | Run xpander deploy CLI |
| Infrastructure | Agent-workers (managed or self-hosted) | Docker containers + registry |
| Complexity | Zero code, zero configuration | Write code, manage Dockerfile |
| Flexibility | Pre-configured runtime | Full control over environment |
| Use case | Most agents | Custom dependencies, advanced logic |
Where Agent-Workers Run
xpander Cloud (Default)
Your agent runs on xpander’s managed agent-workers:- Automatic scaling
- Pay-as-you-go pricing
- No infrastructure to manage
- Data processed in xpander cloud
Self-Hosted
Deploy agent-workers to your own Kubernetes:- Full data control
- Runs in your infrastructure
- Deploy once, use for all serverless agents
- See Self-Hosted Deployment
Configuration
Environment Variables
Set environment variables in Workbench Settings → Environment Variables:Resource Limits
Configure in Workbench Settings → Resources:- CPU: 0.25 - 4 vCPUs
- Memory: 512MB - 8GB
- Timeout: 30s - 15min
Monitoring
View execution metrics in Monitor tab:- Request count and latency
- Memory and CPU usage
- Error rates
- Token usage
- Thread history and logs
When to Use
Use Serverless (no code) when:- ✅ Building agents with Workbench UI
- ✅ Don’t need custom code logic
- ✅ Standard connectors and tools are sufficient
- ✅ Want zero infrastructure management
- ❌ Need to write custom agent logic
- ❌ Require custom system dependencies
- ❌ Need specific Python packages or base images
- ❌ Want full control over agent behavior
Taking over agent code? Once you customize the agent code with
xpander agent new, your agent automatically becomes containerized when you run xpander deploy. See Agent Containers.
