> ## Documentation Index
> Fetch the complete documentation index at: https://tbd-6fc993ce-hypeship-antigravity-api-key-path.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# cookbooks

> end-to-end recipes to teach agents to use the internet

export const CookbookSearch = () => {
  const [matches, setMatches] = useState(null);
  const handleInput = useCallback(e => {
    const q = e.target.value.trim().toLowerCase();
    let count = 0;
    document.querySelectorAll('#content .columns').forEach(section => {
      let sectionCount = 0;
      section.querySelectorAll('.card').forEach(card => {
        const hit = q === '' || card.textContent.toLowerCase().includes(q);
        card.style.display = hit ? '' : 'none';
        if (hit) sectionCount++;
      });
      const display = sectionCount > 0 ? '' : 'none';
      section.style.display = display;
      const heading = section.previousElementSibling;
      if (heading && heading.tagName === 'H2') heading.style.display = display;
      count += sectionCount;
    });
    setMatches(q === '' ? null : count);
  }, []);
  return <div style={{
    margin: '1.5rem 0 0.5rem'
  }}>
      <input type="search" placeholder="search cookbooks..." onInput={handleInput} aria-label="Search cookbooks" style={{
    width: '100%',
    padding: '0.625rem 0.875rem',
    fontSize: '0.9375rem',
    fontFamily: 'inherit',
    border: '1px solid rgba(128, 128, 128, 0.35)',
    borderRadius: '0.5rem',
    background: 'transparent',
    outline: 'none'
  }} />
      {matches === 0 && <p style={{
    marginTop: '1rem',
    opacity: 0.7
  }}>
          no cookbooks match your search.
        </p>}
    </div>;
};

Self-contained cookbooks to clone and run. Use as 1-click starts for your agents or as templates for your own build.

<CookbookSearch />

## Common patterns

<Columns className="responsive-columns" cols={3}>
  <Card title="Playwright & Computer Use" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/playwright.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=5c794797510768c9ff442d2541d2e180" href="/browsers/playwright-computer-use-fallback" width="985" height="867" data-path="images/cookbooks/playwright.png">
    <div className="cookbook-tag">common patterns</div>
    Using Playwright with computer use fallback.
  </Card>

  <Card title="Human-in-the-loop Credentials" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/hitl-creds.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=0d8fa4254346c268e0f454fd113e7f2a" href="/browsers/use-vault-credentials-in-browser-agent" width="985" height="867" data-path="images/cookbooks/hitl-creds.png">
    <div className="cookbook-tag">common patterns</div>
    Collect credentials from a human, then let your agent fill the form.
  </Card>

  <Card title="Code Mode with WebMCP" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/code-mode.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=dbe7e209ce0d4dd64310175b84b80477" href="/browsers/code-mode-webmcp" width="985" height="867" data-path="images/cookbooks/code-mode.png">
    <div className="cookbook-tag">common patterns</div>
    Use WebMCP for supported page actions and Browser REPL helpers for everything else.
  </Card>

  <Card title="Agentic Payments" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/payments.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=7ffaf1d49a9f8a384b3606fff25a9924" href="/browsers/enable-payments-in-browser-agent" width="985" height="867" data-path="images/cookbooks/payments.png">
    <div className="cookbook-tag">common patterns</div>
    Enable Payments in a Browser Agent.
  </Card>

  <Card title="Pausing for Captcha Solves" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/captcha-solving.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=9c9b79bee0393e2a2627d6f3b2980db5" href="/browsers/telemetry/pausing-for-captcha-solves" width="985" height="867" data-path="images/cookbooks/captcha-solving.png">
    <div className="cookbook-tag">common patterns</div>
    Hold an agent while Kernel's captcha solver works, and tell it what actually happened.
  </Card>

  <Card title="Parallel Task Execution" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/parallel-task-execution.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=20f7f18272c8701b22c824ec68b5da7f" href="/browsers/parallel-task-execution" width="985" height="867" data-path="images/cookbooks/parallel-task-execution.png">
    <div className="cookbook-tag">common patterns</div>
    Execute multiple tasks in parallel on a single profiled browser session.
  </Card>
</Columns>

## Harnesses & models

### Computer use models

<Columns className="responsive-columns" cols={3}>
  <Card title="Claude Computer Use Loop" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/claude.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=b9950f086c850b703ed31dd6d221d176" href="https://github.com/kernel/cookbooks/tree/main/integrations/claude-computer-use-loop" width="985" height="867" data-path="images/cookbooks/claude.png">
    <div className="cookbook-tag">harnesses & models</div>
    Minimal implementation of Anthropic's computer use loop.
  </Card>

  <Card title="Stagehand Google CUA Agent" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/stagehand.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=5f8bbbb76481fc060996f36e74368cc9" href="https://github.com/kernel/cookbooks/tree/main/integrations/stagehand-google-cua-agent" width="985" height="867" data-path="images/cookbooks/stagehand.png">
    <div className="cookbook-tag">harnesses & models</div>
    Computer use agent with Google's Gemini 2.5 and Stagehand.
  </Card>

  <Card title="Jev Browser Use" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/jev.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=b291bb74feb14aa671fdc1ed735781a8" href="https://github.com/kernel/browser-loop/tree/main/packages/browser-loop/examples/jev-system-one" width="985" height="867" data-path="images/cookbooks/jev.png">
    <div className="cookbook-tag">harnesses & models</div>
    Run a browser use loop with Jev System One.
  </Card>

  <Card title="Tinker RL" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/tinker.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=b73d1a71daf627d32236994a86eca598" href="https://github.com/kernel/cookbooks/tree/main/integrations/tinker-rl" width="985" height="867" data-path="images/cookbooks/tinker.png">
    <div className="cookbook-tag">harnesses & models</div>
    RL training for computer use agents, using Tinker.
  </Card>
</Columns>

### Agent and automation frameworks

<Columns className="responsive-columns" cols={3}>
  <Card title="AI SDK Agent" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/ai-sdk.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=c1a944af6aa9617001eedb107075050c" href="https://github.com/kernel/cookbooks/tree/main/integrations/ai-sdk-agent" width="985" height="867" data-path="images/cookbooks/ai-sdk.png">
    <div className="cookbook-tag">harnesses & models</div>
    Browser automation with the Vercel AI SDK and KERNEL's Playwright execution API.
  </Card>

  <Card title="Mastra Web Task Assistant" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/mastra.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=0b77f1460041f78e04309e49c74c8117" href="https://github.com/kernel/cookbooks/tree/main/integrations/mastra-web-task-assistant" width="985" height="867" data-path="images/cookbooks/mastra.png">
    <div className="cookbook-tag">harnesses & models</div>
    Human-in-the-loop web task assistant with memory, built on Mastra.
  </Card>

  <Card title="e2e Web Testing" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/e2e.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=dd79cc2af9034595bdf5a8a9b4023857" href="https://github.com/kernel/cookbooks/tree/main/integrations/e2e-kernel" width="985" height="867" data-path="images/cookbooks/e2e.png">
    <div className="cookbook-tag">harnesses & models</div>
    Run agentic and deterministic end-to-end checks in a KERNEL browser with e2e.
  </Card>

  <Card title="Vibium" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/vibium.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=9be5ce752d8f05225374966483889ec2" href="https://github.com/kernel/cookbooks/tree/main/integrations/vibium" width="985" height="867" data-path="images/cookbooks/vibium.png">
    <div className="cookbook-tag">harnesses & models</div>
    Vibium browser automation over WebDriver BiDi.
  </Card>

  <Card title="fx, Co-located" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/fx.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=f8e939db5df06284e83d8ea299114cc8" href="https://github.com/kernel/cookbooks/tree/main/integrations/fx-colocated-agent" width="985" height="867" data-path="images/cookbooks/fx.png">
    <div className="cookbook-tag">harnesses & models</div>
    Run the fx coding agent inside a KERNEL browser VM, co-located with the browser it drives.
  </Card>

  <Card title="Browser Use Model" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/browser-use.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=ed83e5cc26debbde44de3a40f33def1b" href="https://github.com/kernel/cookbooks/tree/main/integrations/browser-use-model" width="985" height="867" data-path="images/cookbooks/browser-use.png">
    <div className="cookbook-tag">harnesses & models</div>
    Run the Browser Use bu-1.0 model on KERNEL browser infrastructure.
  </Card>
</Columns>

### Hosted agents

<Columns className="responsive-columns" cols={3}>
  <Card title="Eve Browser Agent" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/eve.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=ac5db71f7722fe1a2a4ddd958d3845f1" href="https://vercel.com/kb/guide/build-a-browser-agent" width="985" height="867" data-path="images/cookbooks/eve.png">
    <div className="cookbook-tag">harnesses & models</div>
    Build a browser agent that works behind a login with managed auth.
  </Card>

  <Card title="Claude Managed Agents" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/claude.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=b9950f086c850b703ed31dd6d221d176" href="https://github.com/kernel/cookbooks/tree/main/integrations/claude-managed-agents" width="985" height="867" data-path="images/cookbooks/claude.png">
    <div className="cookbook-tag">harnesses & models</div>
    Run parallel computer-use agent swarms, with API keys secured via Vaults.
  </Card>

  <Card title="Personal Shopper" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/link-eve.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=c6c65573fc45c8594d6a0e6a3c0faae3" href="https://github.com/stripe-samples/agents/tree/main/personal-shopper" width="985" height="867" data-path="images/cookbooks/link-eve.png">
    <div className="cookbook-tag">harnesses & models</div>
    Build a Link and Eve agent that browses with KERNEL and uses a Link wallet for approved purchases.
  </Card>

  <Card title="Foreman Software Factory" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/vercel.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=cbfad63d9ab914c3dab83f6457c109e2" href="https://vercel.com/kb/guide/software-factory-browser" width="985" height="867" data-path="images/cookbooks/vercel.png">
    <div className="cookbook-tag">harnesses & models</div>
    Give your software factory a browser.
  </Card>

  <Card title="iMessage Agent as a Service" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/linq-eve.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=556f63c05d40d3a73dd381c073c1f422" href="https://eve.dev/templates/openinstinct-eve-template" width="985" height="867" data-path="images/cookbooks/linq-eve.png">
    <div className="cookbook-tag">harnesses & models</div>
    Run a multi-tenant iMessage agent with eve and Linq that browses the web with KERNEL.
  </Card>
</Columns>

### Sandboxes and platforms

<Columns className="responsive-columns" cols={3}>
  <Card title="Modal PR QA Agent" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/modal.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=8d0c12122dcae8181972616c27a21945" href="https://github.com/kernel/cookbooks/tree/main/integrations/modal-pr-qa-agent" width="985" height="867" data-path="images/cookbooks/modal.png">
    <div className="cookbook-tag">harnesses & models</div>
    QA your PR previews with Claude computer use on Modal, recorded with Replays.
  </Card>

  <Card title="Modal Web Scraper" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/modal.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=8d0c12122dcae8181972616c27a21945" href="https://github.com/kernel/cookbooks/tree/main/integrations/modal-web-scraper" width="985" height="867" data-path="images/cookbooks/modal.png">
    <div className="cookbook-tag">harnesses & models</div>
    Scrape JS-rendered pages behind a login, on Modal with a KERNEL browser.
  </Card>

  <Card title="e2b" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/e2b.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=9658bafb4cd278c113356d19aa5bdba5" href="https://docs.e2b.dev/use-cases/remote-browser" width="985" height="867" data-path="images/cookbooks/e2b.png">
    <div className="cookbook-tag">harnesses & models</div>
    Connect e2b sandboxes with KERNEL browsers.
  </Card>

  <Card title="Jev Browser Use x Val Town" img="https://mintcdn.com/tbd-6fc993ce-hypeship-antigravity-api-key-path/2GezboZiOZzuTjaA/images/cookbooks/jev.png?fit=max&auto=format&n=2GezboZiOZzuTjaA&q=85&s=b291bb74feb14aa671fdc1ed735781a8" href="https://www.val.town/x/kernel/jev-browser-use" width="985" height="867" data-path="images/cookbooks/jev.png">
    <div className="cookbook-tag">harnesses & models</div>
    Host a Jev browser use agent on Val Town.
  </Card>
</Columns>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.