HiringsAI SDK

A small JavaScript client (ES modules, no dependencies) for the live HiringsAI API and MCP server. Version 0.1.2.

Install

Published on npm: hiringsai. Needs Node 18 or newer. No dependencies.

npm install hiringsai

Python (3.8 or newer, standard library only): hiringsai on PyPI.

pip install hiringsai

A tarball is also served from this site. SHA-256: 6d3c448649da5b455848ec68f9eeca3a3aec21aecb575a2535b7728446519de4

npm install https://sdk.hiringsai.com/hiringsai-0.1.2.tgz

npm package: https://www.npmjs.com/package/hiringsai. Or download hiringsai-0.1.2.tgz (also at cli.hiringsai.com, same file).

Use it

import { HiringsAI } from "hiringsai";

const c = new HiringsAI();
const { count, runnable_count, tools } = await c.listTools({ suite: "build" });
const tool = await c.getTool("regex-workshop");
const out = await c.runTool("regex-workshop", { pattern: "(\\d+)", text: "a1b22" });
console.log(out.match_count); // 2
const r = await c.complete("Say hi", { maxTokens: 16 });
console.log(r.text);

Methods

MethodCalls
listTools({suite})GET /api/v1/tools
getTool(slug)GET /api/v1/tools/{slug}
runTool(slug, input)MCP run_tool (only the tools the catalogue marks runnable)
complete(prompt, {maxTokens})POST /api/v1/ai/complete
mcpInitialize(), mcpTools(), mcpCall(name, args)MCP initialize, tools/list, tools/call

Errors throw HiringsAIError with status and code. complete uses a daily free allowance, so it can fail with 429 or 503.

What it does not do

It covers only what the API and MCP server do today: the tool catalogue, running the runnable tools, and text generation. Apps, workflows, runs, connectors, files, billing and webhooks are not built, so the SDK has nothing for them. There are no API keys or accounts. Tools marked web-only in the catalogue cannot be run from the SDK. Only JavaScript is available; there is no Python SDK.

Command line: cli.hiringsai.com.