javascript-sdk — Claude Code skill: what it does, how to install
javascript-sdk teaches the agent to wire the inference.sh JavaScript/TypeScript client into your app: running AI apps, streaming progress and building agents in code.
no license 239 installs ★ 31 updated 2026-08-31
npx skills add 101-skills/superpowers --skill javascript-sdk -a claude-codeWhat javascript-sdk does
This skill hands the agent a working map of @inferencesh/sdk, the JavaScript and TypeScript client for inference.sh. Covered: creating a client with a key, calling apps through client.run, following updates as a stream, uploads, and sessions that keep a worker warm between calls. A separate part deals with agents — either a template from your workspace or one assembled in code, with tools built through the tool builder and human approval on a call.
The package goes into the project with npm install @inferencesh/sdk; the skill itself arrives through npx skills add. Runtime is Node.js 18.0.0 or newer, or a browser that has fetch. A key looks like inf_... and belongs in INFERENCE_API_KEY, not in a source file.
A key left in browser code is readable by anyone, so frontend clients take a proxyUrl pointing at your own backend. Without that hop the key reaches every visitor of the page.
What it helps with
- Call a ready-made AI app from a Node.js script and read the output
- Assemble an agent with custom tools and approval before each call
- Render generation progress inside a React component
- Upload a file picked in a browser form and pass it to an app
- Keep a worker alive across requests with a session
Example prompts for the agent
- Add
@inferencesh/sdkto this Next.js app and runinfsh/flux-schnellwith the prompt from the form - Build an agent with a calculator tool and ask for approval before it runs
- Stream generation status into a React component
How to install javascript-sdk
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill javascript-sdk -a claude-code2Manually: put the files in place
~/.claude/skills/javascript-sdk/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/javascript-sdk/
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill javascript-sdk -a codex2Manually: put the files in place
.agents/skills/javascript-sdk/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill javascript-sdk -a cursor2Manually: put the files in place
.cursor/skills/javascript-sdk/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install 101-skills/superpowers sdk/javascript-sdk/SKILL.md2Manually: put the files in place
.github/skills/javascript-sdk/SKILL.md1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill javascript-sdk -a gemini-cli2Platform CLI
gemini skills install https://github.com/101-skills/superpowers --path sdk/javascript-sdkManually: put the files in place
.devin/skills/javascript-sdk/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill javascript-sdk -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about javascript-sdk
How do I install javascript-sdk in Claude Code?
Run npx skills add 101-skills/superpowers --skill javascript-sdk -a claude-code; the skill file lands at ~/.claude/skills/javascript-sdk/SKILL.md.
What does javascript-sdk do?
It tells the agent how to use the inference.sh JavaScript and TypeScript client: running apps, streaming status, uploading files and building agents with tools.
What do I need before using it?
Node.js 18.0.0 or newer, or a browser with fetch, plus an API key from inference.sh. Frontend code goes through a proxyUrl instead of holding the key.