bl serve
Start a local development server for your project
Synopsis
Start a local development server for your Blaxel project.
This runs your agent or MCP server locally on your machine for rapid
development and testing. Perfect for the inner development loop where you
want to iterate quickly without deploying to the cloud.
Supported Languages:
- Python (requires pyproject.toml or requirements.txt)
- TypeScript/JavaScript (requires package.json)
- Go (requires go.mod)
Hot Reload:
Enable —hotreload to automatically restart your server when code changes
are detected. This dramatically speeds up development by eliminating manual
restarts.
Testing Locally:
While your server is running, test it with:
- bl chat agent-name —local (for agents)
- bl run agent agent-name —local —data '' (for agents)
Workflow:
- bl serve —hotreload Start local server with auto-reload
- Edit your code Make changes
- Test immediately Server reloads automatically
- bl deploy Deploy when ready
Examples
Options
Options inherited from parent commands
SEE ALSO
- bl - Blaxel CLI - manage and deploy AI agents, sandboxes, and resources
Last modified on April 11, 2026