Basilica
CLI

Overview

For those who prefer the terminal. Spin up GPUs, deploy code, manage your account. No GUI required, no friction added.

Installation

macOS / Linux

curl -sSL https://basilica.ai/install.sh | bash

Verify with basilica --version.

Commands

Authentication

CommandDescription
loginAuthenticate with Basilica
logoutClear stored credentials

GPU Rentals

CommandDescription
lsList available GPU instances
upStart a GPU rental
psList active rentals
statusCheck rental status
logsView instance logs
downTerminate a rental
restartRestart instance container
execExecute commands on instance
sshSSH into instance
cpCopy files to/from instance

Deployments

CommandDescription
deployDeploy an application
deploy lsList deployments
deploy statusGet deployment status
deploy logsStream deployment logs
deploy scaleScale replicas
deploy deleteDelete a deployment
deploy vllmDeploy vLLM server
deploy sglangDeploy SGLang server

Account Management

CommandDescription
balanceCheck credit balance
fundShow deposit address
fund listList deposit history
tokensManage API tokens
ssh-keysManage SSH keys

Run basilica <command> --help for detailed options.

Configuration

Config lives in ~/.config/basilica/. Auth data in ~/.local/share/basilica/.

Environment VariableDescription
BASILICA_API_TOKENAPI token for authentication
BASILICA_API_URLAPI endpoint URL

Infrastructure Sources

NameDescriptionBest For
The BourseDecentralized GPU network, competitive pricingDevelopment, cost optimization
The CitadelDatacenter infrastructure with SLAsProduction workloads

Filter by source using --compute bourse or --compute citadel.

Auto-Login

Not logged in? No problem. Commands that need auth will prompt you automatically.

Exit Codes

CodeMeaning
0Success
1General error
2Authentication error
3Network error
4Resource not found

Next Steps

On this page