javascript-sdk
JavaScript/TypeScript SDK for inference.sh - run AI apps, build agents, integrate 150+ models. Package: @inferencesh/sdk (npm install). Full TypeScript support, streaming, file uploads. Build agents with template or ad-hoc patterns, tool builder API, skills, human approval. Use for: JavaScript integration, TypeScript, Node.js, React, Next.js, frontend apps. Triggers: javascript sdk, typescript sdk, npm install, node.js api, js client, react ai, next.js ai, frontend sdk, @inferencesh/sdk, typescript agent, browser sdk, js integration
Why use this skill?
Use the javascript-sdk to build, run, and manage AI agents with inference.sh. Full TypeScript support, streaming, and file management for developers.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/okaris/javascript-sdkWhat This Skill Does
The javascript-sdk skill enables OpenClaw agents to interface directly with the inference.sh platform using a powerful TypeScript-first library. It acts as a bridge between your AI agent and a massive ecosystem of over 150+ AI models. Whether you are building complex agentic workflows, generating media, or running advanced inference tasks, this skill simplifies the process by handling authentication, API communication, file uploads, and streaming updates. It supports sophisticated features like fire-and-forget execution for long-running tasks, real-time log streaming for observability, and automated file handling to ensure seamless data pipelines between your local filesystem and the cloud.
Installation
To integrate this skill into your workflow, use the following terminal command:
clawhub install openclaw/skills/skills/okaris/javascript-sdk
Once installed, ensure you have your inference.sh API key ready. You can configure the client by either passing the key directly to the constructor or by setting it in your environment variables for better security. For developers building frontend-facing applications, the SDK provides built-in support for proxy-based requests, ensuring your credentials remain hidden.
Use Cases
This skill is highly versatile and serves several primary use cases:
- Agent Integration: Build custom AI agents that can trigger model inferences on-demand as part of a larger plan.
- Content Generation Pipelines: Automate image or text generation workflows where the agent needs to process inputs and handle model outputs programmatically.
- Application Development: Quickly prototype and ship React or Next.js applications that require direct access to high-performance AI models.
- File-Driven AI Apps: Utilize the SDK's built-in file handling to automatically upload assets from the local environment to the inference engine, process them, and return the result.
Example Prompts
- "Initialize a new inference client using my API key and trigger the flux-schnell model with a prompt about a futuristic cityscape."
- "Run the image-processor app on the file located at ./assets/input.jpg and stream the execution logs back to me in real-time."
- "Set up a task to execute the veo-3-1-fast model as a fire-and-forget request, then let me know the task ID once the process has started."
Tips & Limitations
- Security: Avoid hardcoding your API keys directly in source code. Always use environment variables for sensitive credentials.
- Versioning: When running apps, specify the model version if needed, or use the default namespace/name format for standard deployments.
- Infrastructure: Be aware that certain models may require specific infra configurations; check the app documentation on inference.sh for requirements.
- Environment: While Node.js 18.0.0+ is recommended for the best experience, ensure your network allows for the outbound HTTPS requests required by the inference API.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-okaris-javascript-sdk": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, external-api
Related Skills
product-changelog
Product changelog and release notes that users actually read. Covers categorization, user-facing language, visuals, and distribution. Use for: release notes, changelogs, product updates, feature announcements, versioning. Triggers: changelog, release notes, product update, version notes, what's new, feature announcement, product changelog, update log, release announcement, version release, product release, ship notes
logo-design-guide
Logo design principles and AI image generation best practices for creating logos. Covers logo types, prompting techniques, scalability rules, and iteration workflows. Use for: brand identity, startup logos, app icons, favicons, logo concepts. Triggers: logo design, create logo, brand logo, logo generation, ai logo, logo maker, icon design, brand mark, logo concept, startup logo, app icon logo
ai-content-pipeline
Build multi-step AI content creation pipelines combining image, video, audio, and text. Workflow examples: generate image -> animate -> add voiceover -> merge with music. Tools: FLUX, Veo, Kokoro TTS, OmniHuman, media merger, upscaling. Use for: YouTube videos, social media content, marketing materials, automated content. Triggers: content pipeline, ai workflow, content creation, multi-step ai, content automation, ai video workflow, generate and edit, ai content factory, automated content creation, ai production pipeline, media pipeline, content at scale
explainer-video-guide
Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline
newsletter-curation
Newsletter curation with content sourcing, editorial structure, and subscriber growth strategies. Covers issue formatting, link roundups, commentary style, and sending cadence. Use for: email newsletters, link roundups, weekly digests, curated content, creator newsletters. Triggers: newsletter, email newsletter, newsletter curation, weekly digest, link roundup, curated newsletter, newsletter writing, newsletter format, subscriber growth, newsletter strategy, content curation, newsletter template