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
content-repurposing
Content atomization — turn one piece of content into many formats. Covers blog-to-thread, blog-to-carousel, podcast-to-blog, video-to-quotes, and more. Use for: content marketing, social media, multi-platform distribution, content strategy. Triggers: content repurposing, repurpose content, content atomization, content recycling, one to many content, multi platform content, cross post, adapt content, reformat content, blog to thread, blog to video, podcast to blog, content multiplication
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
product-photography
AI product photography with studio lighting, lifestyle shots, and packshot conventions. Covers angles, backgrounds, shadow types, hero shots, and e-commerce image requirements. Use for: product photos, e-commerce images, Amazon listings, packshots, lifestyle photography. Triggers: product photography, product photo, packshot, e-commerce photography, product shot, product image, studio photography, lifestyle product, amazon product photo, product listing image, hero shot, product mockup, commercial photography
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