Skip to content

Add Cookbook tab with 12 REST API examples#604

Draft
jpelletier1 wants to merge 1 commit into
mainfrom
add-cookbook-tab
Draft

Add Cookbook tab with 12 REST API examples#604
jpelletier1 wants to merge 1 commit into
mainfrom
add-cookbook-tab

Conversation

@jpelletier1

Copy link
Copy Markdown
Contributor
  • I have read and reviewed the documentation changes to the best of my ability.
  • If the change is significant, I have run the documentation site locally and confirmed it renders as expected.

Summary of changes

Adds a new Cookbook navigation tab to the docs site, sourced from jpshackelford/oh-examples. The Cookbook is a collection of standalone, runnable Python examples that show how to use the OpenHands Cloud REST API.

What's added

docs.json — new "Cookbook" tab entry with 4 sidebar groups.

13 new pages under cookbook/:

Group Pages
Landing page cookbook/index.mdx — overview with CardGroup tiles, API overview table, and links to all examples
Sandboxes start-sandbox — create a sandbox and run commands directly against the agent-server; clone-and-attach — provision a sandbox (clone + setup.sh) then attach a conversation
Conversations conversation-metrics — CLI tool for cost/token usage (V0 + V1 auto-detect); conversation-tags — write/read key-value metadata on a conversation; per-conversation-secrets — inject secrets as bash env vars or MCP auth placeholders
Plugins & Skills load-plugin — the plugins field that pre-loads a plugin at conversation-start; launch-plugin-badge — build no-code /launch links, HTML buttons, and README badges; upload-skills — upload a skills directory into a sandbox; test-mcp-config — validate MCP server configs via POST /api/mcp/test
Hooks command-blacklist — PreToolUse hook blocking dangerous patterns; command-whitelist — PreToolUse hook allowing only an approved command list; workspace-isolation — enforce directory boundaries on both terminal and file_editor

Each page follows the doc style guide (frontmatter, code blocks, <Note> components, internal cross-links) and links back to the source files on GitHub.

This pull request was created by an AI agent (OpenHands) on behalf of the user.

@jpelletier1 can click here to continue refining the PR

Adds a new 'Cookbook' navigation tab sourced from jpshackelford/oh-examples.
Creates 13 MDX pages organized into 4 groups:

- Sandboxes: start-sandbox, clone-and-attach
- Conversations: conversation-metrics, conversation-tags, per-conversation-secrets
- Plugins & Skills: load-plugin, launch-plugin-badge, upload-skills, test-mcp-config
- Hooks: command-blacklist, command-whitelist, workspace-isolation

Co-authored-by: openhands <openhands@all-hands.dev>
@mintlify

mintlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
all-hands-ai 🟢 Ready View Preview Jul 2, 2026, 7:46 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants