
blaxel-cli
Manage Blaxel resources from the command line using the bl CLI. Deploy agents, sandboxes, jobs, and MCP servers. Also installs the Blaxel CLI if not present.
- Installs
- 608
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/blaxel-ai/agent-skills --skill blaxel-cli- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads blaxel-cli automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Blaxel CLI
A CLI to manage Blaxel cloud resources from the command line: agents, sandboxes, jobs, MCP servers, drives, and more.
Prerequisites
The bl command must be available on PATH. To check:
bl version
If not installed, use the official installer for this operating system.
macOS or Linux:
curl -fsSL https://blaxel.ai/install.sh | sh
Windows PowerShell:
irm https://blaxel.ai/install.ps1 | iex
Follow the installer's PATH or shell-reload instructions, then complete setup:
bl setup
Setup installs the Blaxel skills and configures supported coding agents. In a terminal, it also offers browser login. If the installer already completed setup, verify the result instead of repeating it.
When running without a terminal, use bl setup --yes. Setup skips browser login
in that environment. If sign-in is still needed, run bl login, present its
secure browser URL, and continue after the user approves it. Confirm the
selected workspace from command output; do not guess a workspace name or ask for
pasted credentials.
For unattended automation, use an existing BL_API_KEY and BL_WORKSPACE
supplied securely through the environment. Commands can use these directly; do
not start browser login or persist the key in agent configuration.
Verify the installed command and active workspace:
bl version
bl workspaces --current
Treat empty workspace output as incomplete sign-in.
Global Flags
All commands support these flags:
| Flag | Description |
|---|---|
-o, --output <format> | Output format: pretty, yaml, json, table |
-w, --workspace <name> | Override workspace for this command |
-v, --verbose | Enable verbose output |
-u, --utc | Enable UTC timezone |
--skip-version-warning | Skip version warning |
Non-Interactive Mode
For commands that prompt for input (confirmations, selections), add -y or
--yes to auto-confirm. This is required when running in non-interactive /
no-TTY environments (scripts, CI, agents).
Available Commands
bl apply # Apply configuration changes to resources declaratively using YAML files.
bl chat # Start an interactive chat session with a deployed agent.
bl connect # Open an interactive terminal session to a sandbox
bl delete # Delete Blaxel resources from your workspace.
bl deploy # Deploy your Blaxel project to the cloud.
bl drive # Manage drives and drive mounts on sandboxes.
bl fork # Create a new sandbox or application by forking an existing sandbox.
bl get # Retrieve information about Blaxel resources in your workspace.
bl login # Authenticate with Blaxel to access your workspace.
bl logout # Remove stored credentials for a workspace.
bl logs # View logs for Blaxel resources.
bl mcp # Serve the hosted Blaxel MCP tools over stdio using your existing bl login.
bl new # Create a new Blaxel resource from templates.
bl push # Build and push a container image to the Blaxel registry without creating a deployment.
bl run # Execute a Blaxel resource with custom input data.
bl serve # Start a local development server for your Blaxel project.
bl setup # Set up everything Blaxel needs on this machine, then log in.
bl share # Share Blaxel resources with other workspaces in your account.
bl skills # Manage Blaxel skills for coding agents
bl token # Retrieve the authentication token for the specified workspace.
bl unshare # Remove shared Blaxel resources from other workspaces.
bl upgrade # Upgrade the Blaxel CLI to the latest version.
bl version # Print the version number
bl workspaces # List and manage Blaxel workspaces.
Reference Documentation
- apply - Apply configuration changes to resources declaratively using YAML files.
- chat - Start an interactive chat session with a deployed agent.
- connect - Open an interactive terminal session to a sandbox
- delete - Delete Blaxel resources from your workspace.
- deploy - Deploy your Blaxel project to the cloud.
- drive - Manage drives and drive mounts on sandboxes.
- fork - Create a new sandbox or application by forking an existing sandbox.
- get - Retrieve information about Blaxel resources in your workspace.
- login - Authenticate with Blaxel to access your workspace.
- logout - Remove stored credentials for a workspace.
- logs - View logs for Blaxel resources.
- mcp - Serve the hosted Blaxel MCP tools over stdio using your existing bl login.
- new - Create a new Blaxel resource from templates.
- push - Build and push a container image to the Blaxel registry without creating a deployment.
- run - Execute a Blaxel resource with custom input data.
- serve - Start a local development server for your Blaxel project.
- setup - Set up everything Blaxel needs on this machine, then log in.
- share - Share Blaxel resources with other workspaces in your account.
- skills - Manage Blaxel skills for coding agents
- token - Retrieve the authentication token for the specified workspace.
- unshare - Remove shared Blaxel resources from other workspaces.
- upgrade - Upgrade the Blaxel CLI to the latest version.
- version - Print the version number
- workspaces - List and manage Blaxel workspaces.
Discovering Options
To see available subcommands and flags, run --help on any command:
bl --help
bl deploy --help
bl get --help
bl get agents --help
Common Workflows
Create a sandbox, run a command, and get its logs
# 1. Create a sandbox with bl apply
bl apply -f - <<EOF
apiVersion: blaxel.ai/v1alpha1
kind: Sandbox
metadata:
name: my-sandbox
spec:
runtime:
image: blaxel/base-image:latest
memory: 2048
lifecycle:
expirationPolicies:
- type: ttl-idle
value: 1h # Delete after 1 hour of inactivity. Units: h, d, w
action: delete
EOF
# 2. Retrieve sandbox configuration
bl get sandbox my-sandbox
# 3. Execute a command in the sandbox and get stdout of the command
bl run sandbox my-sandbox --path /process --data '{"command": "echo hello world", "name": "my-cmd", "waitForCompletion": true}'
# 4. Retrieve the logs for that command in case stdout was not sufficient
bl logs sandbox my-sandbox my-cmd
Run a complex command in a sandbox (agent guideline)
bl run sandbox ... --path /process --data '<json>' requires the JSON payload
to survive shell quoting. As soon as the command embeds nested quotes,
backslashes, multiple lines, or interpreters like sh -lc / python3 -c,
inline --data becomes brittle and the API rejects the request with
400 Bad Request: invalid character ... in string escape code.
Decision rule for an agent:
- Command has no single quotes, no backslashes, no newlines → use
--data '{"command": "...", "waitForCompletion": true}'directly. - Anything more complex (nested quotes, escapes, multiline, scripts) → write
the JSON payload to a file with your Write/file-creation tool (this
bypasses the shell entirely), then run with
--file.
# Step 1 — agent writes /tmp/process.json with content like:
# {
# "command": "sh -lc 'python3 -c \"print(\\\"hello\\\")\"'",
# "name": "cve-check",
# "waitForCompletion": true
# }
#
# Step 2 — execute it
bl run sandbox my-sandbox --path /process --file /tmp/process.json
Deploy an agent
bl new agent my-agent
cd my-agent
bl serve --hotreload # Test locally
bl deploy # Deploy to cloud
bl chat my-agent # Chat with it
Manage sandboxes
bl get sandboxes # List all
bl get sandbox my-sandbox --watch # Watch status
bl connect sandbox my-sandbox # Interactive terminal
bl logs sandbox my-sandbox --follow # Stream logs
bl delete sandbox my-sandbox # Clean up
Multi-workspace deployment
bl workspaces dev # Switch to dev
bl deploy # Deploy to dev
bl workspaces prod # Switch to prod
bl deploy # Deploy to prod
FAQ
What does the blaxel-cli skill do?
Manage Blaxel resources from the command line using the bl CLI. Deploy agents, sandboxes, jobs, and MCP servers. Also installs the Blaxel CLI if not present.
How do I install blaxel-cli?
Run npx skills add https://github.com/blaxel-ai/agent-skills --skill blaxel-cli in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/blaxel-cli/ (personal) or .claude/skills/blaxel-cli/ (project).
Which AI agents can use blaxel-cli?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is blaxel-cli safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains blaxel-cli?
It is published by blaxel-ai in blaxel-ai/agent-skills. It has 608 recorded installs.
More from blaxel-ai/agent-skills
blaxel-sdk
blaxel-ai/agent-skills
Use when creating cloud sandboxes (microVMs) to run code, start dev servers, and generate live preview URLs. Also covers deploying AI agents, MCP servers, batch jobs, and Agent Drives (shared filesystems) on Blaxel's serverless infrastructure. Reach for this skill when you need isolated compute environments, real-time app previews, shared file storage across sandboxes, or to deploy agentic workloads.
blaxel
blaxel-ai/agent-skills
Use when creating cloud sandboxes (microVMs) to run code, start dev servers, and generate live preview URLs. Also covers deploying AI agents, MCP servers, batch jobs, and Agent Drives (shared filesystems) on Blaxel's serverless infrastructure. Reach for this skill when you need isolated compute environments, real-time app previews, shared file storage across sandboxes, or to deploy agentic workloads.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available