iblai-api-agent-sandbox
Skill15 starsChanged 2 months agoMITView on GitHub
Connect/disconnect an ibl.ai agent's sandbox (Claw) instance, manage Claw instances, push config, run health/connectivity checks, and set the agent's model — via the platform API. Use when wiring an agent to a sandboxed workspace.
- Reads credentials
- Sends data out
In this repository158 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-datasetSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-embedSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-memorySkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-evalsSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-local-llmSkill
- iblai-vibe-os-agent-code-modeSkill
- iblai-vibe-projectSkill
- iblai-vibe-workflowSkill
- iblai-api-analyticsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Not connected yet? Run /iblai-api-login first to populate IBLAI_ORG, IBLAI_USERNAME, and IBLAI_API_KEY.
- Very specific: line 143
Run test-connectivity before connecting an agent to confirm the sandbox is reachable.
- Very specific: line 146
After connecting, push-config (or set auto_push on the claw-config) so the agent's workspace reflects the latest agent_config.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
iblai-api-agent-sandbox
Wire an agent to a Claw sandbox instance, manage the available instances, push config and run health/connectivity checks, and set the model the agent's workspace uses. Use when connecting an agent to a sandboxed workspace.
Auth & conventions
- Base URL:
https://api.iblai.app - Header:
Authorization: Api-Token $IBLAI_API_KEYon every request. - Prefix: paths shown as
…are underhttps://api.iblai.app/dm/api/ai-mentor— the/dmgateway routes to the Data Manager service. (…/api/ai-agent/…is an accept-only alias for the same routes.) - Path vars:
{org}=$IBLAI_ORG,{username}=$IBLAI_USERNAME,{mentor}= the agent's unique id (a UUID, e.g.d17dc729-60fd-4363-81a0-f67d9318b03e).{id}onclaw/instances/andclaw/model-providers/is the integer primary key. - Not connected yet? Run
/iblai-api-loginfirst to populateIBLAI_ORG,IBLAI_USERNAME, andIBLAI_API_KEY.
Reads
Instances
- GET
…/orgs/{org}/claw/instances/— list registered Claw instances. - GET
…/orgs/{org}/claw/instances/{id}/— retrieve one instance (status,claw_version, last health/pairing).
Model providers
- GET
…/orgs/{org}/claw/model-providers/— list the org's model-provider blocks. - GET
…/orgs/{org}/claw/model-providers/{id}/— retrieve one provider block.
Agent config
- GET
…/orgs/{org}/mentors/{mentor}/claw-config/— the agent's connected instance + push status (404 = not connected). - GET
…/orgs/{org}/mentors/{mentor}/agent-config/— agent workspace config (includes current model). - GET
…/orgs/{org}/users/{username}/mentor-llms/?mentor_id={mentor}— available model options.
Writes
Instances
- POST
…/orgs/{org}/claw/instances/— register an instance:{ "name": "string", "claw_type": "openclaw | ironclaw | nemoclaw", "server_url": "https://claw.example.com", "gateway_token": "string (write-only)", "connection_params": { "device_identity": {} }, "auth_headers": {}, "deployment_backend": "backend id (optional)" } - PATCH
…/claw/instances/{id}/— edit (send only changed writable keys:name,claw_type,server_url,gateway_token,connection_params,auth_headers,deployment_backend). - DELETE
…/claw/instances/{id}/— delete instance. Destructive — confirm with the user first. - POST
…/claw/instances/{id}/health-check/— queue a health check (returns202; poll the instance forlast_health_status). - POST
…/claw/instances/{id}/test-connectivity/— TLS reachability + health check. - POST
…/claw/instances/{id}/refresh-version/— detectclaw_versionfrom the instance handshake. - POST
…/claw/instances/{id}/request-pairing/— queue a device-pairing request (pending request expires ~5 min). Outward-facing — confirm with the user first. - POST
…/claw/instances/{id}/push-providers/— push all enabled model providers to the instance. Outward-facing — confirm with the user first. - POST
…/claw/instances/{id}/security-audit/— run a security audit (OpenClaw only). Outward-facing — confirm with the user first.
Model providers
- POST
…/orgs/{org}/claw/model-providers/— register a provider block:{ "server": "instance id (required)", "name": "minimax", "base_url": "https://api.minimax.io/anthropic", "api_type": "anthropic-messages", "credential_name": "string", "credential_key": "key", "model_catalog": [{ "id": "...", "name": "..." }], "models_mode": "merge | replace", "enabled": true } - PATCH
…/claw/model-providers/{id}/— edit a provider (send only changed keys). - DELETE
…/claw/model-providers/{id}/— delete a provider. Destructive — confirm with the user first.
Agent config
- POST
…/mentors/{mentor}/claw-config/— connect the agent to an instance:{ "server": "instance id (required)", "enabled": true, "auto_push": false, "agent_config": {} } - PATCH
…/mentors/{mentor}/claw-config/— edit the connection (enabled,auto_push,agent_config). - DELETE
…/mentors/{mentor}/claw-config/— disconnect. Destructive — confirm with the user first. - POST
…/mentors/{mentor}/claw-config/push-config/— push the agent'sagent_configto the instance. Outward-facing — confirm with the user first. - PATCH
…/mentors/{mentor}/agent-config/— update the agent's workspace config (send only changed keys):{ "model": "string", "allowed_models": "string[]", "identity": "string", "soul": "string", "user_context": "string", "tools": "string", "agents": "string", "bootstrap": "string", "heartbeat": "string", "memory": "string", "config": {} }identity/soul/user_context/tools/agents/bootstrap/heartbeat/memoryare the claw workspace files (IDENTITY.md, SOUL.md, …) pushed to the instance;configis a JSON instance-config patch (heartbeat schedule, session isolation, skill toggles, model fallbacks).configis deny-list validated — writes togateway.auth,gateway.controlUi.dangerouslyDisableDeviceAuth,tools.exec.host,sandbox.mode, andhooks.allowUnsafeExternalContentare rejected.
Example
Connect an agent to a Claw instance and enable it (server is the instance's integer id):
curl -X POST \
"https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/mentors/$MENTOR/claw-config/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"server": 12, "enabled": true}'Notes
- Ids differ by resource:
{mentor}is a UUID, butserverand{id}onclaw/instances/andclaw/model-providers/are integer primary keys. - A
404fromclaw-config/means the agent is not connected to a sandbox yet — use the connect POST to wire it up. - OpenClaw device identity: include an Ed25519 keypair under
connection_params.device_identitywhen registering an OpenClaw instance, or config push fails withmissing scope: operator.read. health-checkis queued (202) — poll the instance forlast_health_status. Runtest-connectivitybefore connecting an agent to confirm the sandbox is reachable.request-pairingmints a pending request that must be approved on the instance side (once per platform connection);security-auditis OpenClaw-only.- After connecting,
push-config(or setauto_pushon the claw-config) so the agent's workspace reflects the latestagent_config;push-providerssyncs the org's enabled provider blocks to the instance. claw_typeisopenclaw,ironclaw, ornemoclaw;gateway_tokenauthenticates the instance to its server.gateway_token,auth_headers, andconnection_paramsare write-only (never returned by reads).
Reference material
Concepts, architecture, response shapes, enums, and a full walkthrough — ported from the platform-integration guide — live alongside this skill. Read them when the endpoints above aren't enough:
references/concepts.md— how instances, model providers, agent bindings, pairing, and config push fit together; register/response shapes with thestatus/deploy_stateenums; model-provider setup; skills in the push flow (CRUD in/iblai-api-agent-skill); the two-sided device-pairing flow; prebuilt agent-config library by vertical (iblai/claws); the self-hostediblai-claw-setupconnection orientation (server provisioning →/iblai-api-infrastructure); a register→configure→push→chat walkthrough; and troubleshooting.references/workspace-files.md— theagent-configfield → claw workspace-file map (identity→IDENTITY.md,soul→SOUL.md, …), theconfiginstance patch, and the blocked-path deny-list with what each protects.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

