superserve deploy command packages your agent code and deploys it to Superserve Cloud.
Quick Deploy (Zero-Config)
Deploy an agent by specifying the entrypoint file:- Package manager: Bun or npm (based on lockfiles)
- Runtime: Python, Node, Bun, or TypeScript
- Agent name: Current directory name
- Command: Appropriate runtime command for your file
Supported File Types
| Extension | Default Command | With Bun |
|---|---|---|
.py | python | python |
.ts, .tsx | npx tsx | bun run |
.js, .jsx | node | bun run |
.mjs, .cjs | node | bun run |
Examples
Config-Based Deploy
For more control, create asuperserve.yaml file:
superserve.yaml.
Example superserve.yaml
Command Options
Script to run (e.g.,
agent.py, src/main.ts). If omitted, the CLI reads from superserve.yamlAgent name (lowercase, alphanumeric, hyphens only). Defaults to directory name
Enable HTTP proxy mode and forward requests to this port. Use this for agents that expose HTTP endpoints
Project directory to deploy. Defaults to current directory
Output deployment result as JSON instead of interactive progress
Skip confirmation when redeploying an existing agent
Examples
Deploy with Custom Name
Deploy from Different Directory
HTTP Proxy Mode
Deploy an agent that listens on port 8000:Redeploy Without Confirmation
JSON Output (for CI/CD)
Deploy Workflow
- Package - Creates a tarball of your project directory
- Upload - Sends the tarball to Superserve Cloud
- Build - Installs dependencies in the sandbox
- Ready - Agent is deployed and ready to run
Example Output
Redeploying
If an agent with the same name exists, the CLI prompts for confirmation:y to redeploy, or use --yes to skip the prompt:
File Ignoring
By default, the CLI includes all files in your project directory. Use theignore field in superserve.yaml to exclude files:
.gitignore syntax.
Dependency Installation
Superserve automatically installs dependencies based on files in your project:| File | Action |
|---|---|
requirements.txt | pip install -r requirements.txt |
pyproject.toml | pip install -e . |
package.json | npm install or bun install |
Build Status
While dependencies install, the agent status isDEPLOYING. Once complete, it changes to READY.
Check status with:
Build Failures
If dependency installation fails:- Check your
requirements.txtorpackage.jsonfor errors - Ensure all dependencies are compatible with Linux x86_64
- Redeploy with
superserve deploy
Deployment Limits
- Max tarball size: 100 MB (uncompressed)
- Max files: 10,000
- Build timeout: 5 minutes
ignore field to exclude large directories.
Troubleshooting
”Entrypoint file not found”
Verify the file exists:--dir:
“Usage: superserve deploy <entrypoint> or create a superserve.yaml”
You must either:- Provide an entrypoint:
superserve deploy agent.py - Create a config:
superserve initthensuperserve deploy
Build Timeout
If dependency installation takes longer than 5 minutes:- Using pre-built wheels
- Splitting complex dependencies into separate agents
- Contacting support if the issue persists