-
Notifications
You must be signed in to change notification settings - Fork 6
Claude agent sdk integration #159
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a8a0dbe
Add Claude Agent SDK integration documentation
cursoragent 507d29c
Merge branch 'main' into cursor/claude-agent-sdk-integration-209f
dprevoznik b010df9
Refactor: Update Claude Agent SDK integration documentation
cursoragent b12dac8
Update api keys links in dashboard
dprevoznik a78fe86
Use code groups instead of tabs for code snippets.
dprevoznik 87fdaf6
Merge branch 'main' into cursor/claude-agent-sdk-integration-209f
dprevoznik 9bdb84d
Update integrations/overview.mdx
dprevoznik 8d9e50d
docs: remove explicit app name from claude-agent-sdk template command…
tembo[bot] f6892f7
Merge branch 'main' into cursor/claude-agent-sdk-integration-209f
dprevoznik c8a3906
Update Claude Code Installation instructions
dprevoznik 4c9f0a8
Merge branch 'cursor/claude-agent-sdk-integration-209f' of https://gi…
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
Some comments aren't visible on the classic Files Changed page.
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,99 @@ | ||
| --- | ||
| title: "Claude Agent SDK" | ||
| --- | ||
|
|
||
| The [Claude for Chrome extension](https://chromewebstore.google.com/detail/claude/hbhbdkfkmpfgjfegglflhflgjpojgnll) brings Claude's powerful AI capabilities directly into your browser. With Kernel's Claude Agent SDK integration, you can run the Claude extension in cloud-hosted browsers, enabling automated interactions with Claude without managing local browser infrastructure. | ||
|
|
||
| By integrating the Claude Agent SDK with Kernel, you can programmatically send messages to Claude, receive responses, and build AI-powered automations that leverage Claude's capabilities in the browser. | ||
|
|
||
| ## Quick setup with Claude Agent SDK | ||
|
|
||
| Get started with the Claude Agent SDK using the Kernel CLI: | ||
|
|
||
| ### Step 1: Extract the extension from your local Chrome | ||
|
|
||
| First, extract the Claude extension and authentication data from your local Chrome installation: | ||
|
|
||
dprevoznik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ```bash | ||
| # Extract extension + auth data to a bundle file | ||
| kernel claude extract -o claude-bundle.zip | ||
|
|
||
| # Extract without auth (will require login in browser) | ||
| kernel claude extract -o claude-bundle.zip --no-auth | ||
|
|
||
| # Use a specific Chrome profile | ||
| kernel claude extract -o claude-bundle.zip --chrome-profile "Profile 1" | ||
| ``` | ||
|
|
||
| ### Step 2: Launch a Kernel browser with Claude pre-loaded | ||
|
|
||
| Launch a cloud browser with the Claude extension automatically loaded and authenticated: | ||
|
|
||
| ```bash | ||
| # Launch browser with Claude extension | ||
| kernel claude launch -b claude-bundle.zip | ||
|
|
||
| # Launch with custom timeout | ||
| kernel claude launch -b claude-bundle.zip -t 7200 | ||
|
|
||
| # Launch and navigate to a specific URL | ||
| kernel claude launch -b claude-bundle.zip --url https://example.com | ||
| ``` | ||
|
|
||
| ### Step 3: Interact with Claude | ||
|
|
||
| Once your browser is running, you can interact with Claude programmatically: | ||
|
|
||
| ```bash | ||
| # Check extension status | ||
| kernel claude status <browser-id> | ||
|
|
||
| # Send a single message (scriptable) | ||
| kernel claude send <browser-id> "What is 2+2?" | ||
|
|
||
| # Send from stdin | ||
| echo "Explain this error" | kernel claude send <browser-id> | ||
|
|
||
| # Send from file | ||
| kernel claude send <browser-id> -f prompt.txt | ||
|
|
||
| # Interactive chat TUI | ||
| kernel claude chat <browser-id> | ||
| ``` | ||
|
|
||
| ### Loading into an existing browser | ||
|
|
||
| You can also load the Claude extension into an existing Kernel browser session: | ||
|
|
||
| ```bash | ||
| # Load Claude into an existing browser session | ||
| kernel claude load <browser-id> -b claude-bundle.zip | ||
| ``` | ||
|
|
||
| ## Available commands | ||
|
|
||
| | Command | Description | | ||
| |---------|-------------| | ||
| | `kernel claude extract` | Extract the Claude extension and authentication data from a local Chrome installation | | ||
| | `kernel claude launch` | Launch a new Kernel browser with the extension pre-loaded and authenticated | | ||
| | `kernel claude load` | Load the extension into an existing Kernel browser | | ||
| | `kernel claude status` | Check the extension's state in a browser | | ||
| | `kernel claude send` | Send single messages programmatically (scriptable) | | ||
| | `kernel claude chat` | Interactive chat with Claude via a TUI | | ||
|
|
||
| ## Benefits of using Kernel with Claude Agent SDK | ||
|
|
||
| - **No local browser management**: Run Claude automations without installing or maintaining browsers locally | ||
| - **Authenticated sessions**: Extract and reuse your Claude authentication across cloud browsers | ||
| - **Scriptable interactions**: Send messages and receive responses programmatically for automation workflows | ||
| - **Interactive chat**: Use the built-in TUI for interactive conversations with Claude | ||
| - **Scalability**: Launch multiple browser sessions in parallel for concurrent AI agents | ||
| - **Live view**: Debug your Claude agents with real-time browser viewing | ||
| - **Cloud infrastructure**: Run AI-powered automations without local resource constraints | ||
|
|
||
| ## Next steps | ||
|
|
||
| - Check out [live view](/browsers/live-view) for debugging your Claude automations | ||
| - Learn about [browser extensions](/browsers/extensions) for loading custom extensions | ||
| - Learn how to properly [terminate browser sessions](/browsers/termination) | ||
| - Learn about [profiles](/browsers/profiles) to maintain browser state across runs | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.