Set up authentication to Blaxel
Set up authentication to Blaxel
The Blaxel SDK authenticates with your workspace using credentials from these sources, in priority order:
- when running on Blaxel, authentication is handled automatically
- variables in your
.env
file (BL_WORKSPACE
andBL_API_KEY
, or see this page for other authentication options). - environment variables from your machine
- configuration file created locally when you log in through Blaxel CLI (or deploy on Blaxel)
Install
Create sandboxes
Use Blaxel SDK to create and connect to sandboxes and sandbox previews.
Interact with a sandbox
Use Blaxel SDK to manage the filesystem, processes and logs of a sandbox.
Connect to MCP servers
Use Blaxel SDK to retrieve tools from a deployed MCP server.
Connect to model APIs
Use Blaxel SDK to retrieve an LLM client when building agents.
Deploy your MCP server
Use Blaxel SDK to create and host a custom MCP server.
Chain agents
Use Blaxel SDK to chain calls to multiple agents.
Complete SDK reference
Visit the GitHub page below for detailed documentation on the SDK’s commands and classes.Python SDK
Open the GitHub repository for Blaxel SDK in Python.