Home
Softono
steel-cookbook

steel-cookbook

Open source MIT
97
Stars
18
Forks
8
Issues
3
Watchers
1 month
Last Commit

About steel-cookbook

Examples and guides for using the Steel API

Platforms

Web Self-hosted

Documentation Discord X

Steel Cookbook

A collection of production-ready examples demonstrating how to build powerful browser automations with Steel. From basic Playwright scripts to advanced AI agent workflows, these examples show you how to leverage Steel's cloud browser infrastructure for reliable, scalable web automation.

  • Basics: Essential examples covering browser automation fundamentals with popular frameworks like Playwright, Puppeteer, and Selenium.

  • AI Agents: AI-powered browser automation using computer use models (Claude, OpenAI, Gemini) and specialized agent frameworks (Browser-use, Stagehand, CrewAI).

  • Advanced Features: Steel platform capabilities including persistent profiles, credential management, browser extensions, and session reuse.

Example catalogs

Browse examples by your preferred language:

TypeScript Python

Or explore the complete catalog below:


Basics

Foundation examples for browser automation with Steel. Start here if you're new to Steel or want to integrate it with your preferred automation framework.

Example Name Languages
Playwright Integration
Puppeteer Integration
Selenium Integration

AI Agents

AI-powered browser automation that can understand, reason about, and interact with web pages autonomously.

Computer Use Models

Vision-based AI models that can control browsers by analyzing screenshots and executing actions.

Example Name Languages
Claude Computer Use
Claude Computer Use (Mobile)
OpenAI Computer Use
Gemini Computer Use

Agent Frameworks

Specialized frameworks that provide high-level abstractions for building AI-powered browser automation workflows.

Example Name Languages
Browser-use
Stagehand
Browser-use + CAPTCHA (Auto)
Browser-use + reCAPTCHA v2 (Manual)
Inngest AgentKit
Magnitude AI Testing
Mastra
Agno
CrewAI
Notte
Vercel AI SDK v6
Vercel AI SDK v6 (Next.js)
OpenAI Agents SDK
LangGraph
Pydantic AI
Microsoft Agent Framework
Claude Agent SDK
Deep Research (Claude Agent SDK subagents)

Advanced Features

Steel platform features that enhance your browser automation workflows with persistent state, credential management, and more.

Feature Example
Auth Context Reuse Reuse authentication state (cookies, local storage) across sessions
Persistent Profiles Maintain browser state across sessions with persistent profiles
Credential Management Securely store and automatically inject credentials
Browser Extensions Load and use browser extensions in cloud browsers
File Handling Upload and download files in cloud browser sessions

Language-Specific Catalogs

TypeScript

Basics

  • Playwright - Playwright with TypeScript and session management
  • Puppeteer - Puppeteer with CDP connection and cloud browser automation

AI Computer Use

Agent Frameworks

  • Stagehand - AI-powered browser automation with natural language
  • Inngest AgentKit - Multi-agent networks and web scraping
  • Magnitude - AI-powered testing framework
  • Mastra - Typed agents with the Mastra Model Router and Studio playground
  • Vercel AI SDK v6 - ToolLoopAgent with typed tools and structured output
  • Vercel AI SDK v6 (Next.js) - Next.js chat app with streamText, useChat, and an embedded Live View
  • OpenAI Agents SDK - Agent with tool() + Zod outputType for structured final answers
  • Claude Agent SDK - Anthropic's first-party agent loop with Steel exposed as in-process MCP tools
  • Deep Research - Lead orchestrator dispatches parallel researcher subagents on Claude Agent SDK, each driving its own Steel session

Advanced Features

Python

Basics

AI Computer Use

Agent Frameworks


Running the Examples

Each example contains a comprehensive README with setup instructions. Here's the general workflow:

1. Clone and Navigate

git clone https://github.com/steel-dev/steel-cookbook.git
cd steel-cookbook/examples/<example-name>

2. Install Dependencies

TypeScript:

npm install
# or
yarn install
# or
pnpm install

Python: (install uv first)

uv sync

3. Configure Environment

Copy the .env.example to .env and add your Steel API key:

cp .env.example .env

Get your API key from the Steel Dashboard.

4. Run the Example

TypeScript:

npm start
# or
npx tsx index.ts

Python:

uv run main.py

Refer to each example's README for specific requirements and advanced configuration options.


Getting Steel API Access

All examples require a Steel API key. Steel provides cloud browser infrastructure with:

  • Managed browser sessions - No infrastructure setup or maintenance
  • Built-in CAPTCHA solving - Automatic CAPTCHA resolution
  • Proxy support - Residential and datacenter proxy integration
  • Session persistence - Maintain state across multiple sessions
  • Extension support - Load browser extensions in cloud browsers

Sign up for Steel to get your API key and start building.


Joining the Community

Stay connected with the Steel community:

  • Discord - Get help, share feedback, and connect with other developers
  • Documentation - Comprehensive guides and API reference
  • X/Twitter - Stay updated with the latest news and features

This is the perfect place to ask questions, share your automations, and learn from the community!


Contributing

We welcome contributions! See the Contributing Guide for:

  • Adding new examples
  • Improving existing examples
  • Reporting issues
  • Suggesting new integrations

Support