Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add 101-skills/superpowers --skill javascript-sdk -a claude-code
Open on GitHub

What 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/sdk to this Next.js app and run infsh/flux-schnell with 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-code

2Manually: put the files in place

~/.claude/skills/javascript-sdk/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/javascript-sdk/

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.

Similar skills

All skills for AI and ML →

From the same set81

The whole set →
qwen-image-2 qwen-image-2 is a Claude Code skill for creating and editing images with Alibaba Qwen-Image-2.0. It responds to Qwen Image and image-generation requests. CX Codex +1 240installs qwen-image-2-pro qwen-image-2-pro — a skill for Claude Code and Cursor that generates images via Alibaba Qwen-Image-2.0-Pro. Renders multi-line text in posters and banners. CX Codex +1 239installs linkedin-content linkedin-content — a skill for drafting LinkedIn posts: hook formulas, formatting rules, post types, character limits and the signals the feed rewards. CX Codex +1 239installs widgets-ui widgets-ui — a skill for Claude Code, Cursor, Codex and other agents: builds React/Next.js components from JSON descriptions. The agent outputs a widget structure; the renderer assembles forms, cards and layouts in the project. CX Codex +1 239installs llm-models llm-models queries over a hundred LLMs through OpenRouter using the belt command-line tool directly from your agent. Selects cost-effective models automatically. CX Codex +1 238installs press-release-writing press-release-writing is a Claude Code skill that writes AP-style press releases with an inverted pyramid, triggered by product launches, funding rounds, partnerships, and company news. CX Codex +1 238installs customer-persona customer-persona turns market search into a buyer persona: demographics, psychographics, goals, quantified pain points and a generated portrait. For strategy decks and product decisions. CX Codex +1 238installs ai-podcast ai-podcast builds multi-character talking head video podcasts from scratch using inference.sh tools for portrait rendering, speech synthesis, and clip stitching. CX Codex +1 238installs

Project sponsors

Companies that keep this analytics open