openhands/extensions/agent-canvas-environment
Claude Code and agent skill by openhands/extensions
- community
Checking that the SKILL.md file is still in the repository.
Work effectively inside a local Agent Canvas environment, including local agent-server auth, frontend/backend port discovery, safe workspace hygiene, and delegating work to a new local conversation through POST /api/conversations.
Install
npx vskill@latest install openhands/extensions/agent-canvas-environmentSKILL.md
The same SKILL.md was published earlier as openhands/extensions/agent-canvas-environment.
Agent Canvas Environment
Use this skill when running inside or alongside a local Agent Canvas stack, especially when the user asks to inspect the local backend, create or monitor local conversations, or delegate work to another local conversation.
Core rules
- Treat the local Agent Canvas backend as an agent-server API, usually
http://localhost:8001. - Treat the local UI as a separate frontend, usually
http://localhost:8000. - Do not print session API keys. Pass them directly in
X-Session-API-Key. - Trust any runtime-services block or explicit user-provided host over default ports.
- Before mutating a repository, check
git status -sb. If a worktree has unrelated changes, use a separate worktree or clone. - When delegating, write a self-contained prompt. The new conversation does not inherit the current chat context.
Find the session key
Use the first available value, without echoing it:
Validate backend access:
HTTP 200 means the backend and key work.
Delegate to a local conversation
Use POST /api/conversations with:
- the encrypted
agent_settingsfromGET /api/settings(withX-Expose-Secrets: encrypted), which carries the real Fernet-encryptedllm.api_key, the existingagent_context, and the agent kind — so you never handle plaintext credentials and you don't drop the caller's skill/context config secrets_encrypted: trueso the agent-server decrypts thatapi_keyserver-side- the exec tool set merged into
agent_settings.tools(andtask_tool_setwhen you enable sub-agents) tool_module_qualnamesfor any non-SDK tools (e.g.canvas_ui)agent_context.load_public_skills/load_user_skills/load_project_skillsset totrueif the delegated agent should inherit bundled/user/project skills- a fresh absolute workspace directory
initial_message.run: trueworktree: falsewhen the workspace is already isolated
Credential handling — important
GET /api/settings (default) masks every credential — llm.api_key comes back as the literal string "**********". If you forward that verbatim, the new conversation authenticates with the placeholder and fails immediately with LLMAuthenticationError (You must provide an API key).
The supported way to obtain forwardable credentials is the `X-Expose-Secrets: encrypted` request header. With it, /api/settings returns the real llm.api_key as a Fernet-encrypted token (starts with gAAAAA) intended to be sent back to the server with secrets_encrypted: true; the agent-server's decrypt_incoming_llm_secrets decrypts it server-side. Do not read ~/.openhands/profiles/*.json directly — that is brittle (the caller may not share the backend's home directory, active_profile may be null, the profile store may live elsewhere).
Two working approaches:
- `agent_profile_id` (simplest, but no tools) — send only
agent_profile_id: "<uuid>"(fromGET /api/agent-profiles→ the profile whoseidequalsactive_agent_profile_idfrom/api/settings). The server resolves the LLM key + agent kind from the profile. Mutually exclusive withagent/agent_settings, and theopenhandsagent-profile schema forbidstools/include_default_tools, so the conversation gets zero exec tools this way. Use only when the task needs no tools.
- Encrypted `agent_settings` (full tools, preserves context) — start from the encrypted
/api/settingsagent_settingspayload, dropschema_versionandmcp_config(to avoid MCP-connection failures at creation time), merge in the exec tool set andload_*_skillsflags, and send withsecrets_encrypted: true. This is the pattern for real delegated work.
Template (full tools, preserves context):
Verify the new conversation actually has tools and is running (not errored):
execution_status should be running/idle/finished (not error), tools should list the exec tools, and there should be no ConversationErrorEvent.
If MCP servers configured in the profile are unreachable, conversation creation can fail with MCP Connection Failure; the template drops mcp_config from the forwarded agent_settings to avoid that.
Report both links:
- UI:
http://localhost:8000/conversations/<conversation_id> - API:
http://localhost:8001/api/conversations/<conversation_id>
Monitor a delegated conversation
Terminal statuses commonly include idle, running, finished, error, stuck, and stopped.
Prompt checklist for delegation
Include:
- repository owner/name and local path if relevant
- branch, PR, issue, or Linear ticket identifiers
- current status and known blockers
- exact files or subsystems in scope
- dirty-worktree warnings and paths not to touch
- whether to push, open a PR, or only report
- checks/tests to run
- expected final report format
Do not rely on the new conversation knowing anything from the current thread.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-canvas-environment/SKILL.md
Popularity
- Repository stars
- 150
- Repository forks
- 91
- Repository npm downloads, 7 days
- 8,622
- 7-day trend score
- 46
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 22 Sep 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openhands/extensions/agent-canvas-environment)