Get from zero to a running GPU rental or deployed service in a few minutes.
curl -sSL https://basilica.ai/install.sh | bashVerify it's on your $PATH:
basilica --versionOptional: install Basilica agent skills for supported coding tools:
basilica skills installbasilica loginFor headless terminals (SSH sessions, remote boxes, CI):
basilica login --device-codeTop up credits with TAO. The CLI will generate a deposit address for you:
basilica fund
basilica balance
basilica fund listUse this path when you need SSH access — training, custom environments, long-lived development boxes, or debugging.
basilica lsFilter by GPU type, region, or spot:
basilica ls --gpu h100 --region US
basilica ls --gpu a100 --exclude-spotbasilica up --gpu h100 --gpu-count 1The CLI prompts for a name and your SSH key, then returns a rental ID and connection info.
basilica ps # list active rentals
basilica status <rental-id> # details
basilica ssh <rental-id> # interactive shell
basilica exec <rental-id> -- nvidia-smi
basilica cp ./local-file <rental-id>:/workspace/basilica down <rental-id>Use this path when you want a public HTTP endpoint, a containerized app, or a hosted inference server.
basilica deploy my-app nginx:latest --port 80 --ttl 3600
basilica deploy status my-app
basilica deploy logs my-app--ttl ensures the deployment auto-cleans; drop it for a persistent service.
basilica deploy vllm my-llm --model meta-llama/Meta-Llama-3-8B-Instruct
basilica deploy sglang my-sglang --model Qwen/Qwen2.5-7B-Instructbasilica deploy scale my-app --replicas 3
basilica deploy share-token my-app # generate token for private deploysbasilica deploy delete my-apppip install basilica-sdk
basilica tokens create my-agent-token
export BASILICA_API_TOKEN="basilica_..."from basilica import BasilicaClient
client = BasilicaClient()
# Health
print(client.health_check().status)
# List GPU offerings
for node in client.list_nodes(available=True)[:5]:
gpu = node.node.gpu_specs[0]
print(f"{node.node.id}: {gpu.name} x{len(node.node.gpu_specs)}")See GETTING-STARTED.md for the full SDK walkthrough.
examples/— runnable end-to-end scripts for deployments, inference, GPU training, storage.- GETTING-STARTED.md — the canonical SDK guide.
- agent-cloud-ops.md — copy-paste playbook for agents and automation.
The installer writes to ~/.basilica/bin. Add it to your shell profile:
echo 'export PATH="$HOME/.basilica/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcUse device-code flow:
basilica login --device-codeConfirm the env var is exported in the shell running your script:
echo $BASILICA_API_TOKENCreate a fresh token if needed:
basilica tokens create fresh-tokenCheck the getting-started guide troubleshooting section, or reach out on Discord.