-
Notifications
You must be signed in to change notification settings - Fork 9
Add Docker Sandboxes integration page #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
guergabo
wants to merge
7
commits into
main
Choose a base branch
from
hypeship/docker-sandboxes-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+46
−0
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9c31d51
Add Docker Sandboxes integration page
guergabo 5ff388e
Trim Docker Sandboxes page to Kernel-unique content
guergabo 20375b7
Simplify page description
guergabo fe7a624
Update docker-sandboxes.mdx
guergabo 42443ca
Merge branch 'main' into hypeship/docker-sandboxes-integration
dprevoznik 2be5cdf
fix(integrations): correct Kernel CLI reference link
dprevoznik 90857c6
docs(integrations): soften kit-vs-manual-install phrasing
dprevoznik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| --- | ||
| title: "Docker Sandboxes" | ||
| description: "Run agents inside Docker Sandboxes with access to Kernel" | ||
| --- | ||
|
|
||
| The [Kernel kit](https://github.com/kernel/docker-sbx-kit) is a [Docker Sandboxes](https://docs.docker.com/ai/sandboxes/) [mixin](https://docs.docker.com/ai/sandboxes/customize/kits/) that gives any `sbx` agent: | ||
|
|
||
| - **Kernel CLI** (`@onkernel/cli`) installed at sandbox creation | ||
| - **Kernel agent skills** from [`kernel/skills`](https://github.com/kernel/skills), so Claude Code (and any agent that reads `~/.agents/skills`) can drive Kernel without prompting | ||
| - **Proxy-managed `KERNEL_API_KEY`** — your real key stays on the host. The `sbx` proxy injects it as `Authorization: Bearer …` on requests to `api.onkernel.com`. The agent inside the sandbox never sees the secret. | ||
|
|
||
| The last point is the main reason to use this kit over installing `@onkernel/cli` yourself inside a custom kit. | ||
|
|
||
| ## Quickstart | ||
|
|
||
| ```bash | ||
| export KERNEL_API_KEY=sk-kernel-... | ||
| export ANTHROPIC_API_KEY=sk-ant-... | ||
|
|
||
| sbx run --name kernel-demo \ | ||
| --kit "git+https://github.com/kernel/docker-sbx-kit.git" \ | ||
| claude -- \ | ||
| "Using the Kernel CLI, create a browser and navigate to news.ycombinator.com. Tell me the top five articles." | ||
| ``` | ||
|
|
||
| Claude calls `kernel` inside the sandbox → CLI hits `api.onkernel.com` → the `sbx` proxy attaches your `KERNEL_API_KEY` → the request authenticates as you. | ||
|
|
||
| The kit's full `spec.yaml`, install commands, and allowed domains live in the [repo README](https://github.com/kernel/docker-sbx-kit#readme). | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - `sbx` installed and signed in — see [Docker's getting started guide](https://docs.docker.com/ai/sandboxes/get-started/) | ||
| - A Kernel API key from the [Kernel Dashboard](https://dashboard.onkernel.com/api-keys) | ||
| - An Anthropic API key from the [Anthropic Console](https://console.anthropic.com/) if you're using the built-in `claude` agent | ||
|
|
||
| ## Customizing or extending | ||
|
|
||
| For everything not specific to Kernel — loading kits from local paths or OCI registries, stacking multiple mixins, building your own agent kit, debugging the proxy, `sbx kit add` for running sandboxes — see [Docker's kit reference](https://docs.docker.com/ai/sandboxes/customize/kits/). The Kernel kit is a standard mixin and composes with anything else you put on top. | ||
|
|
||
| ## Next steps | ||
|
|
||
| - Browse [`kernel/skills`](https://github.com/kernel/skills) to see what Claude can do out of the box | ||
| - Read the [Kernel CLI reference](/reference/cli) for commands available inside the sandbox | ||
| - Learn about [browser creation](/browsers/create-a-browser), [stealth mode](/browsers/bot-detection/stealth), and [Profiles](/auth/profiles) for harder automation targets | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specific third-party AI product names used in docs
Medium Severity
The new page references "Claude Code" on line 9 and "Claude" on lines 26 and 42. Per project rules, documentation must not reference specific third-party AI products by name — generic, vendor-neutral terms like "a coding agent," "the agent," or "your AI tool" are expected instead. "Claude Code" is explicitly called out as an example of a term to avoid.
Additional Locations (2)
integrations/docker-sandboxes.mdx#L25-L26integrations/docker-sandboxes.mdx#L41-L42Triggered by learned rule: Use generic terms instead of specific third-party AI product names
Reviewed by Cursor Bugbot for commit 42443ca. Configure here.