百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

clanker

> 数据库
开源

适用于任何云环境的自主系统工程 CLI 代理: AWS、GCP、Cloudflare 等

371 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

适用于任何云环境的自主系统工程 CLI 代理: AWS、GCP、Cloudflare 等

Clanker CLI

Agent swarm powering Clanker Cloud, the first AI DevOps IDE for agents and humans.

Docs available at docs.clankercloud.ai

Language: English | 简体中文

Ask questions about your infra (and optionally GitHub/etc). Clanker can inspect existing environments and also generate or apply infrastructure and deploy plans through its maker and deploy flows.

Repo: bgdnvk/clanker

Homebrew tap: clankercloud/homebrew-tap

Install

Homebrew (can be outdated, the best is to build from master)

bash
brew tap clankercloud/tap
brew install clanker

From source

bash
make install

Self-update

bash
clanker update

By default, clanker update replaces the current binary with the latest GitHub release from bgdnvk/clanker. To track the latest commit on the repository's default branch instead, set the update channel during setup:

bash
clanker config init --update-channel main

or edit ~/.clanker.yaml:

yaml
update:
    channel: main # release or main

You can also override it for one run:

bash
clanker update --channel release
clanker update --channel main

Requirements

  • Go
  • Provider CLIs only for the providers you want Clanker to inspect or manage
bash
clanker onboarding scan
clanker onboarding scan --provider aws,gcp,azure,kubernetes,flyio,linear,notion --format json
clanker onboarding install --dry-run --provider aws,gcp,azure,kubernetes,flyio
clanker onboarding install --yes aws gcloud az kubectl flyctl

clanker onboarding scan detects local credentials and missing provider CLIs, then returns official install docs, auth commands, and token/account URLs for users and agents. Install only the tools needed for selected or detected providers. Examples: AWS uses the official AWS CLI installer and local profiles, GCP uses the official Google Cloud CLI plus Application Default Credentials, and Azure uses the official Azure CLI sign-in flow. Agents that have been asked to install or use Clanker Cloud should run the install step, rerun the scan, then walk any remaining browser login, SSO, sudo, or official API-token step with the user.

Config

Copy the example config and edit it for your environments/providers:

bash
cp .clanker.example.yaml ~/.clanker.yaml

alternatively you can do clanker config init

Most providers use env vars for keys (see .clanker.example.yaml), e.g.:

bash
export OPENAI_API_KEY="..."
export GEMINI_API_KEY="..."
export COHERE_API_KEY="..."

No config file defaults

If you run without ~/.clanker.yaml:

  • Default provider: openai (unless you pass --ai-profile).
  • OpenAI key order: --openai-key → OPENAI_API_KEY (also supports ai.providers.openai.api_key and ai.providers.openai.api_key_env if config exists).
  • Gemini API key order (when using --ai-profile gemini-api): --gemini-key → GEMINI_API_KEY (also supports ai.providers.gemini-api.api_key and ai.providers.gemini-api.api_key_env if config exists).
  • Cohere API key order (when using --ai-profile cohere): --cohere-key → COHERE_API_KEY (also supports ai.providers.cohere.api_key and ai.providers.cohere.api_key_env if config exists).
  • Model: openai defaults to gpt-5; gemini/gemini-api defaults to gemini-2.5-flash; cohere defaults to command-a-03-2025.

AWS

Clanker uses your local AWS CLI profiles (not raw access keys in the clanker config).

Create a profile with the official AWS CLI. Prefer SSO where your AWS account supports it; use access keys only when your account requires them.

bash
aws configure sso
aws sso login --profile clankercloud-tekbog
aws configure --profile clankercloud-tekbog | cat
aws sts get-caller-identity --profile clankercloud-tekbog | cat

Set the default environment + profile in ~/.clanker.yaml:

yaml
infra:
    default_provider: aws
    default_environment: clankercloud

    aws:
        environments:
            clankercloud:
                profile: clankercloud-tekbog
                region: us-east-1

Override for a single command:

bash
clanker ask --aws --profile clankercloud-tekbog "what lambdas do we have?" | cat

Cloud Provider Inventory Examples

Use static list commands for read-only inventory without AI interpretation:

bash
clanker aws list resources
clanker aws list all-services
clanker aws list bedrock-kb
clanker gcp list services
clanker gcp list resources
clanker gcp list run-worker-pools
clanker azure list resource-graph
clanker azure list private-endpoints
clanker azure list ai-search
clanker cf list ai-search
clanker cf list browser-sessions
clanker cf list secrets-stores
clanker cf list pipelines

Each provider exposes the full supported resource list through its help:

bash
clanker aws list --help
clanker gcp list --help
clanker azure list --help
clanker cf list --help

Usage

Clanker Apps

Clanker Apps are account-scoped, immutable deployments for small team software. Deploy a complete HTML document when you need working JavaScript, forms, browser storage, external resources, downloads, navigation, or API calls. The document runs as supplied at its own public app URL; network calls follow normal browser and API CORS behavior.

Creating an app or deployment keeps it private. activate (also available as publish or share) publishes one deployment and returns its shareable link. The full JSON result stays available while a concise Public URL: line makes the link easy to copy. unpublish removes public access without removing retained versions. delete permanently disposes of the app, all versions, and hosted artifacts.

For example, save a complete app as index.html, then deploy it:

xml

Team CRM
bash
export CLANKER_CLOUD_API_KEY="..."

clanker cloud apps create "Team CRM" --description "Shared contact workspace"
clanker cloud apps deploy APP_ID --html-file ./index.html
clanker cloud apps deployments APP_ID
clanker cloud apps share APP_ID DEPLOYMENT_ID
clanker cloud apps unpublish APP_ID
clanker cloud apps delete APP_ID

Single-file HTML deployments are valid UTF-8 and limited to 2 MiB. The CLI sends exactly the supplied HTML; it does not remove features or filter content. Deployment output identifies this runtime as clanker-html-v1 and reports its file count, total bytes, and browser network policy.

HTML apps can explicitly opt into hosted Gemini and/or Kimi calls without shipping provider credentials in the document:

bash
clanker cloud apps deploy APP_ID \
  --html-file ./agent.html \
  --agentic-provider gemini \
  --agentic-provider kimi

Inside the deployed HTML, derive the root-stable app endpoint before calling it so the request still works after client-side navigation:

javascript
const slug = location.pathname.split("/")[2];
const endpoint = `/a/${encodeURIComponent(slug)}/__clanker/llm`;
const response = await fetch(endpoint, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    provider: "gemini",
    messages: [{ role: "user", content: "Summarize these contacts" }],
  }),
});
const result = await response.json();

Agentic access is absent unless at least one --agentic-provider is supplied. When enabled, the defaults are also the launch ceilings: 25 requests per app per UTC day, 16000 input characters per request, and 1024 output tokens per request. Lower them with --agentic-daily-requests, --agentic-max-input-chars, and --agentic-max-output-tokens. The limits must remain at least 1. Agentic options apply only to HTML deployments. These controls are versioned with the deployment, while the daily request counter is app-wide and continues across deployment activations until the next UTC day.

The existing fixed-renderer appSpec v1 runtime remains available for declarative snapshots. Save a specification such as this as app-spec.json:

json
{
  "schemaVersion": 1,
  "title": "Team CRM",
  "description": "Shared contact workspace",
  "theme": "ocean",
  "blocks": [
    {
      "type": "metrics",
      "title": "Overview",
      "items": [{ "label": "Contacts", "value": "12" }]
    },
    {
      "type": "table",
      "title": "Contacts",
      "columns": ["Name", "Company"],
      "rows": [["Ada", "Analytical Engines"]]
    }
  ]
}
bash
clanker cloud apps deploy APP_ID --app-spec-file ./app-spec.json

The v1 block types are metrics, text, table, cards, and list. Specifications are limited to 24 blocks and 256 KiB. Use exactly one of --html, --html-file, --app-spec-json, or --app-spec-file for each deployment.

Create and deploy generate a valid idempotency key automatically. Pass --idempotency-key when you need the same stable key across manual retries.

One-shot sandbox tasks require an account key, then dispose their compute and persistent sandbox storage before returning. If cleanup fails, the command prints the sandbox id and an exact sandboxes delete retry command. Use --keep-sandbox only for intentional debugging work:

bash
clanker cloud sandboxes run "inspect this repository and summarize it"
clanker cloud sandboxes run --keep-sandbox "prepare a debugging workspace"

MCP

Clanker also exposes its own MCP surface as a CLI command.

Run it over HTTP:

bash
clanker mcp --transport http --listen 127.0.0.1:39393 | cat

Or over stdio for MCP clients that launch commands directly:

bash
clanker mcp --transport stdio | cat

The CLI MCP currently exposes tools to:

  • return the installed Clanker version
  • return Clanker routing decisions for a prompt
  • run local clanker commands through MCP, including ask, openclaw, and other subcommands
  • launch and talk to the Clanker Cloud desktop app through its local backend
  • inspect and chat with Kubernetes clusters through native clanker_k8s_* MCP tools, including clanker_k8s_ask_cluster

Clanker chat routing also recognizes Clanker Cloud app questions now. If you use clanker talk and ask about the running desktop app or its saved settings, it will try the local Clanker Cloud backend first and fall back to Hermes if the app is not running.

Examples:

bash
clanker ask --route-only "use clanker cloud mcp to show my saved settings" | cat
clanker ask --route-only "ask clanker cloud about the running app backend" | cat
clanker mcp --transport http --listen 127.0.0.1:39393 | cat

Example MCP calls against the standalone Clanker CLI server:

…

The standalone CLI MCP currently exposes these tools:

  • clanker_version
  • clanker_route_question
  • clanker_run_command
  • clanker_cloud_app_status
  • clanker_cloud_launch_app
  • clanker_cloud_ask_app
  • clanker_cloud_call_backend_api
  • clanker_k8s_list_clusters
  • clanker_k8s_get_resources
  • clanker_k8s_ask_cluster
  • clanker_k8s_logs
  • clanker_k8s_exec
  • clanker_k8s_scale
  • clanker_k8s_restart
  • clanker_k8s_rollout
  • clanker_k8s_apply
  • clanker_k8s_delete_resource
  • clanker_k8s_helm_install
  • clanker_k8s_helm_upgrade
  • clanker_k8s_helm_list
  • clanker_k8s_helm_uninstall
  • clanker_k8s_node_cordon
  • clanker_k8s_node_uncordon
  • clanker_k8s_node_drain

Flags:

  • --aws: force AWS context/tooling for the question (uses the default env/profile from ~/.clanker.yaml unless you pass --profile)
  • --tencent: force Tencent Cloud context/tooling for the question (uses tencent.* config or TENCENTCLOUD_* env vars)
  • --profile : override the AWS CLI profile for this run
  • --ai-profile : select an AI provider profile from ai.providers. (overrides ai.default_provider)
  • --maker: generate a provider execution plan (JSON) for infrastructure changes
  • --destroyer: allow destructive cloud operations when using --maker
  • --apply: apply an approved maker plan (reads

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goagentaiai-agentai-ops

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库