Agentclash runtime resources setup

From agentclash/agentclash · View interactive version

Agentclash runtime resources setup is an AI agent skill from the GitHub repository agentclash/agentclash. Use when configuring AgentClash workspace secrets, provider accounts, provider models, runtime profiles, workspace tools, and readiness checks required before agent builds, deployments, evals, or runs.

How to use this skill

Skill file

AgentClash Runtime Resources Setup

Purpose

Prepare the workspace infrastructure chain that lets AgentClash turn a ready agent build version into a runnable deployment: secrets, provider accounts, provider model IDs, runtime profiles, optional workspace tools, and readiness checks.

Use When

Do Not Use When

Inputs Needed

Environment

Use hosted production by default:

export AGENTCLASH_API_URL="https://api.agentclash.dev"

Commands that create or list workspace resources also need a resolved workspace:

agentclash doctor
agentclash secret list

If workspace resolution fails, run the CLI setup skill first and do not create resources yet.

Resource Order

  1. Verify CLI auth and workspace context.
  2. Store provider credentials as workspace secrets.
  3. Create a provider account that references a workspace secret.
  4. List models available through that provider account and choose a provider model ID.
  5. Create a runtime profile with execution and sandbox limits.
  6. Create optional workspace tools if deployments or packs expect reusable workspace tools.
  7. List resources and record IDs and the provider model ID for agent build/deployment setup.

Procedure

  1. Run agentclash doctor and stop on auth or workspace warnings.
  2. Run agentclash secret list to see which secret keys already exist. If a secret value is not already available in the user's shell, ask the user to set it themselves with agentclash secret set <KEY>; do not request or receive the value in chat.
  3. Create or select the provider account. Prefer credential_reference: "workspace-secret://KEY" over putting raw keys in JSON files.
  4. Run agentclash infra provider-account models <PROVIDER_ACCOUNT_ID> and choose the exact provider model ID needed by the deployment. The list is live when the provider supports discovery and may include static pricing metadata.
  5. Create or select a runtime profile. Keep limits explicit: iterations, tool calls, step timeout, run timeout, and sandbox/network policy.
  6. Create workspace tools only when the deployment or product workflow needs reusable workspace tool resources. Keep these separate from pack-defined composed tools.
  7. Re-list all resources and report the IDs and provider model ID downstream skills need.

Commands

Verify setup and workspace:

export AGENTCLASH_API_URL="https://api.agentclash.dev"
agentclash doctor

Store provider credentials as workspace secrets:

printf '%s' "$OPENAI_API_KEY" | agentclash secret set OPENAI_API_KEY
agentclash secret list

Create a provider account from a JSON file:

{
  "provider_key": "openai",
  "name": "OpenAI Workspace Account",
  "credential_reference": "workspace-secret://OPENAI_API_KEY",
  "limits_config": {
    "rpm": 60
  }
}
agentclash infra provider-account create --from-file provider-account.json
agentclash infra provider-account list
agentclash infra provider-account get <PROVIDER_ACCOUNT_ID>

List the models reachable through that account:

agentclash infra provider-account models <PROVIDER_ACCOUNT_ID>

Create a runtime profile:

{
  "name": "default-native",
  "execution_target": "native",
  "trace_mode": "full",
  "max_iterations": 24,
  "max_tool_calls": 32,
  "step_timeout_seconds": 120,
  "run_timeout_seconds": 1800,
  "profile_config": {
    "sandbox": {
      "allow_shell": true,
      "allow_network": false
    }
  }
}
agentclash infra runtime-profile create --from-file runtime-profile.json
agentclash infra runtime-profile list
agentclash infra runtime-profile get <RUNTIME_PROFILE_ID>

Optional workspace tools:

tool.json:

{
  "name": "inventory-api",
  "tool_kind": "http",
  "capability_key": "inventory.lookup",
  "definition": {}
}
agentclash infra tool list
agentclash infra tool create --from-file tool.json
agentclash infra tool get <TOOL_ID>

Archive or delete only with explicit user confirmation:

agentclash infra runtime-profile archive <RUNTIME_PROFILE_ID>
agentclash infra provider-account delete <PROVIDER_ACCOUNT_ID>
agentclash secret delete <SECRET_KEY>

Expected Output

Failure Modes

Safety Notes

Report Back Format

Workspace: <workspace-id>
Secrets: <KEY present | KEY missing>
Provider account: <id or action needed>
Provider model: <provider model ID>
Runtime profile: <id or action needed>
Workspace tools: <ids or none>
Readiness: <ready for deployment setup | blocked>
Next skill: agentclash-agent-build-author | agentclash-agent-deployment-setup
Notes: <credential, limit, sandbox, or tool caveats>

Related Skills

Related Docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.