Loading...
Loading...
Handles Depot CLI installation, authentication, login, project setup, organization management, and API access. Use when installing the Depot CLI, logging in with `depot login`, creating or managing Depot projects, configuring API tokens or OIDC trust relationships, setting up depot.json, managing organizations, resetting build caches, or using the Depot API/SDKs. Also use when the user asks about Depot authentication methods, token types, environment variables, or general Depot platform setup that isn't specific to container builds, GitHub Actions runners, or Depot CI.
npx skill4agent add depot/skills depot-general# macOS (Homebrew)
brew install depot/tap/depot
# Linux / CI (install script)
curl -L https://depot.dev/install-cli.sh | sh
# Specific version
curl -L https://depot.dev/install-cli.sh | sh -s 2.96.2
# Custom install directory
curl -L https://depot.dev/install-cli.sh | DEPOT_INSTALL_DIR=/usr/local/bin sh
# Proto version manager
proto plugin add depot "https://raw.githubusercontent.com/depot/cli/refs/heads/main/proto.yaml"
proto install depot
# GitHub Actions
- uses: depot/setup-action@v1
# Container image for CI
ghcr.io/depot/cli:latest| Type | Scope | Created Via | Use Case |
|---|---|---|---|
| User token | All projects in all user's orgs | | Local development |
| Project token | Single project | Project Settings | CI environments |
| Org API token | Single organization | Org Settings → API Tokens | API access, automation |
| OIDC trust | Single project (short-lived) | Project Settings → Trust Relationships | CI without static secrets (preferred) |
--tokendepot loginDEPOT_TOKENdepot login # Interactive browser login
depot login --org-id 1234567890 # Specify org
depot login --clear # Clear existing token first
depot logout # Remove saved token| CI Provider | Configuration |
|---|---|
| GitHub Actions | GitHub org/user name + repository name. Requires |
| CircleCI | Organization UUID + Project UUID (must use UUIDs, not friendly names) |
| Buildkite | Organization slug + Pipeline slug |
| RWX | Vault subject |
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for OIDC
steps:
- uses: actions/checkout@v4
- uses: depot/setup-action@v1
- uses: depot/build-push-action@v1
with:
project: <project-id>
push: true
tags: myrepo/app:lateststeps:
- uses: depot/setup-action@v1
- uses: depot/build-push-action@v1
with:
project: <project-id>
token: ${{ secrets.DEPOT_TOKEN }}docker login registry.depot.dev -u x-token -p <any-depot-token>
# Username is always "x-token". Password is any user, project, org, or OIDC token.
# Kubernetes secret
kubectl create secret docker-registry regcred \
--docker-server=registry.depot.dev \
--docker-username=x-token \
--docker-password=<depot-token># Create depot.json in current directory (interactive project selection)
depot init
# Create a new project
depot projects create "my-project"
depot projects create --region eu-central-1 --cache-storage-policy 100 "my-project"
depot projects create --organization 12345678910 "my-project"
# Delete a project (org admin only)
depot projects delete --project-id <id> --yes
# List projects
depot projects listdepot init{"id": "PROJECT_ID"}depot.json--project <id>DEPOT_PROJECT_IDdepot org list # List orgs (supports --output json/csv)
depot org switch [org-id] # Set current org
depot org show # Show current org ID| Variable | Description |
|---|---|
| Auth token (user, project, or org) |
| Project ID (alternative to |
| Suppress build links and update notices (useful in CI) |
| Custom CLI install directory |
| Disable OpenTelemetry tracing |
# List builds
depot list builds
depot list builds --project <id> --output json
# Reset project cache
depot cache reset . # Uses depot.json
depot cache reset --project <id>
# Docker integration
depot configure-docker # Install Depot as Docker plugin + default builder
depot configure-docker --uninstall # Remove| Action | Purpose |
|---|---|
| Install |
| Drop-in for |
| Drop-in for |
| Set Depot as default Docker Buildx builder |
| Pull from Depot Registry |
@depot/sdk-nodedepot/depot-goimport {depot} from '@depot/sdk-node'
const headers = { Authorization: `Bearer ${process.env.DEPOT_TOKEN}` }
// List projects
const result = await depot.core.v1.ProjectService.listProjects({}, {headers})
// Create a build
const build = await depot.build.v1.BuildService.createBuild(
{projectId: '<id>'}, {headers}
)| Plan | Cost | Build Minutes | Cache | Runners |
|---|---|---|---|---|
| Developer | $20/mo | 2,000/mo | 25 GB | Linux, Windows |
| Startup | $200/mo | 20,000/mo + $0.004/min | 250 GB | Linux, Windows, macOS |
| Business | Custom | Custom | Custom | All + GPU |