Skip to main content

api and utilities

anycloud api

Manage the active API target:

anycloud api serve [options]
anycloud api list [--json]
anycloud api use [target]
anycloud api info
anycloud api start [options]
anycloud api start --enable-local-docker
anycloud api stop
anycloud api status
anycloud api logs [-f]
OptionDescription
--useMake a new hosted API the active target
--jsonJSON API target list
--port PORTLocal API port; default 8080
--enable-local-dockerMount the host Docker socket and enable submit --local
--version VERSIONAPI image version; defaults to the CLI version
-f, --followFollow local API logs

The default API URL is http://localhost:8080. api use persists a target in ~/.anycloud/api-url; API_URL is a one-command override. api use local saves the default local target. With no target in a TTY, api use opens a picker of healthy compatible APIs.

The local API binds 127.0.0.1. Enabling Local Docker grants the API container host-root-equivalent control through the Docker socket; enable it only when Local workloads are required.

anycloud login

anycloud login

Authenticate with GitHub OAuth for identity, private GHCR pulls, and Git code sync. When Docker is installed, the command also authenticates the local Docker CLI to GHCR for pushes.

anycloud update

anycloud update

Installer-script installations update from get.anycloud.sh; Homebrew installations update through Homebrew. A running local API is restarted when its image is stale relative to the installed CLI.

anycloud docs

anycloud docs [--all] [--url]
OptionDescription
--allFull Markdown corpus from llms-full.txt
--urlPrint the source URL instead of fetching

The default prints the short llms.txt index.

anycloud db query

Run read-only SQL against the local API database:

anycloud db query "<sql>" [--json]

Only SELECT, WITH, EXPLAIN, and PRAGMA are allowed; writes are refused at the SQLite engine. Results stop at 10,000 rows. JSON is:

{ "rows": [], "rowCount": 0, "truncated": false }

anycloud db schema

anycloud db schema [table] [--json]

With no table, list all user tables and views. With a table, return its columns, foreign keys, and indexes. Agents should inspect the JSON schema before constructing an ad-hoc query.