Terminal
Terminal/Skill
Guides writing reusable code for Steel cloud browsers using its SDKs, REST APIs, and Playwright or Puppeteer, for developers building scripts they run later.
By Steel
Works with
npx skills add steel-dev/skills --skill steel-developersteel-browser.steel-session-debugging when the main task is diagnosing a failed session.steel-reliability when the main task is bot detection, proxy, CAPTCHA, identity, pacing, or login reliability mitigation.Load the relevant reference before writing code:
references/cli-setup.mdreferences/typescript.mdreferences/python.mdreferences/apis.mdreferences/ecosystem.mdreferences/anti-patterns.mdreferences/computer-use.mdreferences/live-embed.mdreferences/reliability-handoff.mdSTEEL_API_KEY.Steel from steel-sdk; SDK source is steel-dev/steel-node.steelAPIKey.steel_api_key.wss://connect.steel.dev?apiKey=...&sessionId=....curl -sSfL.references/anti-patterns.md.TypeScript:
const steelAPIKey = process.env.STEEL_API_KEY;
if (!steelAPIKey) throw new Error("STEEL_API_KEY is required");
const client = new Steel({ steelAPIKey });
const session = await client.sessions.create();
const cdpUrl = `wss://connect.steel.dev?apiKey=${steelAPIKey}&sessionId=${session.id}`;
const browser = await chromium.connectOverCDP(cdpUrl);
const context = browser.contexts()[0];
const page = context.pages()[0] ?? (await context.newPage());
try {
await page.goto("https://example.com");
} finally {
await browser.close();
await client.sessions.release(session.id);
}
Python:
steel_api_key = os.environ["STEEL_API_KEY"]
client = Steel(steel_api_key=steel_api_key)
session = client.sessions.create()
cdp_url = f"wss://connect.steel.dev?apiKey={steel_api_key}&sessionId={session.id}"
browser = await playwright.chromium.connect_over_cdp(cdp_url)
context = browser.contexts[0]
page = context.pages[0] if context.pages else await context.new_page()
try:
await page.goto("https://example.com")
finally:
await browser.close()
await playwright.stop()
client.sessions.release(session.id)
steel --version
steel login
steel doctor --preflight
steel skills doctor
curl -sSfL https://docs.steel.dev/llms.txtcurl -sSfL https://docs.steel.dev/llms-full.txtcurl -sSfL https://docs.steel.dev/llms.mdx/<page-path>