Deploy your first workload on Blaxel.
Install Blaxel CLI
Install on Mac
Install on Linux
Install with cURL
Install on Windows
wsl --install -d Ubuntu-20.04
Login
Login to Blaxel via the CLI.
Install a package manager (if not done already)
Python: install pip
TypeScript: install npm
Create your first resource
Create an agent application
/src/agent.py
or /src/agent.ts
. A placeholder HTTP API server is already preconfigured in /src/main.py
or /src/main.ts
.Create a batch job
/src/index.py
or /src/index.ts
.Create a sandbox
Create an MCP server
bl create-mcp-server
. This will create a 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
http://localhost:1338
with the following payload format: {"inputs": "Hello world!"}
:Job: execute the job locally
http://localhost:1338
with the following payload format: {"tasks": [{"param1": "value1"}]}
MCP server: test the server
bl serve --hotreload
.Make a first inference
Agent: send an invocation request
--local
.Alternatively, you can send requests to your production agent by running:Job: execute the job
MCP server: test the server