Skip to content
Join free
Vercel Official

Derive Client skill

Reverse-engineer a website's internal API by recording browser traffic into a HAR file, then generate a standalone client or CLI that calls the endpoints directly, with no browser needed after the first recording.

$npx alyn-cli add derive-client
View this skill on GitHubvercel-labs/agent-browser/skill-data/derive-client/SKILL.md
Pack stars
53,765
Pack installs
1.7M
Alyn Score
77/99
Updated
13 min ago
License
Apache-2.0

Vercel

Derive Client

What is the Derive Client skill?

Derive Client is a automation skill by Vercel for Claude Code, Cursor, Codex and other AI coding agents. Reverse-engineer a website's internal API by recording browser traffic into a HAR file, then generate a standalone client or CLI that calls the endpoints directly, with no browser needed after the first recording.

Driving a browser is the right tool for the first visit and the wrong tool for the hundredth. This skill records a site's network traffic once while you use it, then turns the captured requests into a standalone client (script, CLI, or library) that talks to the site's internal API directly.

When to use it

Use this skill when you need a standalone client outside agent-browser.

What the SKILL.md covers

  • Workflow
  • 1. Record
  • 2. Identify endpoints
  • 3. Extract shapes and auth
  • 4. Generate the client
  • 5. Verify
  • Caveats
Author
Vercel
Pack
vercel-labs/agent-browser (12 skills)
Category
Automation, #60 of 431
Alyn Score
77 / 99
Files
1
License
Apache-2.0
Last updated
13 min ago
Works with
Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot

Derive Client compared to similar skills

SkillAlyn ScoreGitHub starsUpdated
Derive Client · Vercel7754k13 min ago
Asc App Create UI · rorkai671.2k2 days ago
Browser Act Skill Forge · browser-act756.4k20 days ago
SEO Roast · Illyism692.1k4 days ago

Install Derive Client

Pick your agent. Every command is ready to paste.

$npx alyn-cli add derive-client

Detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

$npx skills add vercel-labs/agent-browser --skill derive-client

Or use the open skills CLI directly.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads derive-client when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the derive-client skill”. In Codex, type $derive-client.

The skill itself

SKILL.md

FolderGitHub

Derive an API client from a recorded session

Driving a browser is the right tool for the first visit and the wrong tool for the hundredth. This skill records a site's network traffic once while you use it, then turns the captured requests into a standalone client (script, CLI, or library) that talks to the site's internal API directly.

The recording alone contains everything needed: agent-browser embeds text response bodies (JSON/HTML/JS) in the HAR by default, so endpoint shapes can be studied offline after the browser is closed.

For a task the agent itself will repeat, agent-browser flow start and flow save do steps 1 to 4 in the core and flow run replays it without a browser. Use this skill when you need a standalone client outside agent-browser.

Workflow

1. Record     Start HAR capture, drive the flows you want in the client
2. Identify   Find the real API endpoints among the noise
3. Extract    Pull request shapes, response schemas, and auth material
4. Generate   Write the client, one function per flow
5. Verify     Call every endpoint for real before declaring done

1. Record

agent-browser network har start          # embeds text response bodies by default
# ... drive the site: search, open a detail page, paginate, etc. ...
agent-browser network har stop /tmp/site.har
  • Exercise every flow the client should support, and run each one at least twice with different inputs (two search terms, two detail pages). Diffing the recorded URLs reveals which parts are parameters.
  • If the site needs login, log in before starting the HAR so credentials don't land in the recording unnecessarily. The session cookies are exported separately in step 3.
  • --content all embeds binary bodies too (base64); --content none disables embedding. Per-body cap is 2 MB.

While the session is still open, agent-browser network requests and network request <id> give the same data interactively — but only the HAR survives navigation and browser close, so prefer it for anything multi-page.

2. Identify endpoints

Query the HAR with jq:

# All JSON API calls: method, URL, status
jq -r '.log.entries[]
  | select(.response.content.mimeType | test("json"))
  | "\(.request.method) \(.response.status) \(.request.url)"' /tmp/site.har

Ignore analytics and infrastructure noise: telemetry endpoints (/collect, /track, /beacon, /log), third-party domains (google-analytics, segment, sentry, datadog, intercom, hotjar), and static assets. The real API is usually first-party, JSON, and correlates with the actions you performed.

3. Extract shapes and auth

# Full detail for one endpoint: request headers, POST body, response body
jq '.log.entries[] | select(.request.url | test("api/search"))
  | {request: {method: .request.method, headers: .request.headers,
     postData: .request.postData.text},
     response: .response.content.text}' /tmp/site.har
  • Response schema: read .response.content.text — this is the real payload, use it to derive types.
  • Auth: compare request headers across endpoints. Look for authorization, cookie, x-csrf-token, x-api-key, and site-specific x-* headers. Replay only the ones that matter — test by omission in step 5.
  • Cookies: export the live session with agent-browser cookies get --json > cookies.json for the client to load at runtime. Never hardcode cookie values into generated source.

4. Generate the client

  • One function per recorded flow (search(query), getItem(id)), typed from the observed response bodies.
  • Auth material (cookies, bearer tokens) loads from a file or environment variable, with a clear error telling the user to re-run the browser login when it expires.
  • Reproduce the headers the API actually requires — some sites 403 without a matching user-agent, referer, or x-requested-with.
  • Keep pagination, sort, and filter parameters that appeared in the recorded query strings as function options.

5. Verify

Call every generated function against the live API and compare the response shape with the recording. Common failures:

Symptom Cause Fix
401/403 Expired or missing session Re-login via agent-browser, re-export cookies
403/419 on writes CSRF token is per-session or per-form Fetch the token endpoint first, or keep that flow browser-driven
Works then breaks Signed/expiring request params Fall back to the browser for that step; derive the rest
Different shape than HAR A/B tests or geo-dependent responses Re-record and treat the union as optional fields

Caveats

  • Internal APIs are unversioned and change without notice — keep the HAR so the client can be re-derived.
  • Respect the site's terms of service and rate limits; add delays for bulk fetching.
  • HAR files contain live session credentials (cookies, tokens, POST bodies). Treat them like secrets: keep them out of version control and delete them when done.

Tips for Derive Client

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 12 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Derive Client

What does the Derive Client skill do?

Reverse-engineer a website's internal API by recording browser traffic into a HAR file, then generate a standalone client or CLI that calls the endpoints directly, with no browser needed after the first recording.

How do I install Derive Client?

Run "npx alyn-cli add derive-client" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Derive Client work in Cursor and Codex?

Yes. Derive Client uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

When should I use the Derive Client skill?

Use this skill when you need a standalone client outside agent-browser.

What is inside the Derive Client skill?

The SKILL.md covers Workflow, 1. Record, 2. Identify endpoints, 3. Extract shapes and auth, 4. Generate the client, 5. Verify.

What is a good alternative to Derive Client?

Asc App Create UI by rorkai is the highest-ranked similar skill from another creator, with an Alyn Score of 67 compared to 77 for Derive Client.

Is Derive Client free?

Derive Client is open source on GitHub under the Apache-2.0 license. It is free to install; check the license before commercial use.

Who made Derive Client?

Derive Client is published by Vercel in the vercel-labs/agent-browser repository, together with 11 other skills.

Similar skills. From other creators.