Send to your agent
Before you deploy
- Get a Locus API key from the Agent Platform quickstart. If you already have a
claw_key, reuse it. - Make your app listen on port 8080 and configure a health check that returns HTTP 200.
- For a private repository, connect GitHub at buildwithlocus.com/integrations.
Authentication
Exchange your API key for a Build token:Get a Build token
Authorization: Bearer $TOKEN on subsequent Build API requests. Tokens last 30 days; refresh through POST /v1/auth/refresh.
Keep keys and tokens server-side. Use environment variables for application secrets and keep them out of source control.
Deploy your first service
1
Create and deploy the project
For a GitHub repository, one request creates the project, environment, services, and deployments:Replace
Deploy a GitHub repository
repo with your repository. The response includes service URLs and deployment IDs. Locus reads a .locusbuild file if present; otherwise it creates a single web service.2
Wait for a healthy deployment
Use a returned deployment ID to check progress:Source builds typically take 3–7 minutes. When the deployment is
Check deployment status
healthy, open the service URL. If it fails, inspect the deployment logs for the build or startup error.Git push deploys
To deploy local code, create a project and services, add the Locus remote, and push:Deploy local code
rootDir. See the git deployment reference for setup.
Runtime configuration
Your app must read
PORT or otherwise listen on 8080. Choose a health check path your app serves successfully. See service configuration.
Build methods
Locus uses your Dockerfile when present, or automatic framework detection through Nixpacks or Railpack. You can also deploy a pre-builtlinux/arm64 image.
Multi-region support
Choose the region when creating your project. It applies to all services in that project.Pricing
Service and addon charges are deducted from workspace credits on creation and renewed monthly. New Locus-linked workspaces start with $1.00 in credits. MPP and x402 sign-up offers are listed in their respective guides.
Manage credits in the dashboard, or check your balance with
GET /v1/billing/balance. See the billing reference for funding options.