Quickstart
Welcome there! 👋 Make sure you have created an account on Blaxel (here → https://app.blaxel.ai), and created a first workspace (you’ll need the workspace ID).Install Blaxel CLI
Install on Mac
Install on Mac
Install on Linux
Install on Linux
Install with cURL
Install with cURL
Install on Windows
Install on Windows
Login
Login to Blaxel via the CLI.
Login to Blaxel via the CLI.
Learn more about authentication on Blaxel
Learn more about authentication on Blaxel
| Variable | Description |
|---|---|
BL_WORKSPACE | Your Blaxel workspace name |
BL_API_KEY | Your Blaxel API key |
app.blaxel.ai/{workspace}).Set them as environment variables or add them to a .env file at the root of your project:Create your first resource
- Automatic scale-to-zero after 5s inactivity, resume from standby under 25ms even after weeks.
- Micro-VMs with full access to file system, processes and logs — and native support for Zero Data Retention (ZDR).
- Preview URLs with your own custom domain.
Create a sandbox
Create a sandbox
Learn how to manage sandboxes
Deploy an agent, batch job or MCP server
Deploy an agent, batch job or MCP server
Create the resource
Create an agent app
Create an agent app
/src/main.py or /src/main.ts.Create a batch job
Create a batch job
Create an MCP server
Create an MCP server
bl new. This initializes a new pre-scaffolded local repo where your entire code can be added./src/server.py or /src/server.ts.Test and deploy your workload
<<DIRECTORY-NAME>> with the name of the workload’s root directory:Agent: send a test invocation
Agent: send a test invocation
http://localhost:1338 with the following payload format: {"inputs": "Hello world!"}:Job: execute the job locally
Job: execute the job locally
http://localhost:1338 with the following payload format: {"tasks": [{"param1": "value1"}]}MCP server: test the server
MCP server: test the server
bl serve --hotreload.Query your deployment
Agent: send an invocation request
Agent: send an invocation request
--local.Alternatively, just call the global endpoint.Job: execute the job
Job: execute the job
MCP server: test the server
MCP server: test the server
