Quickstart
Install the SDK, connect an account, fetch tools and run your first execution.
This guide takes you from nothing to a tool call. It uses GitHub, but every toolkit works the same way. The SDK runs server-side on Node 18 or later; everything it does is also available over the REST API.
1. Install the SDK
pnpm add @toolwire/sdkThe SDK has no runtime dependencies. Framework adapters live on subpaths (@toolwire/sdk/anthropic,
/openai, /vercel, /langchain) and use the framework package you already have installed.
2. Create an API key
Create an account, then open Dashboard, API keys and choose Create API key. The
default Agent access covers this quickstart, so confirm with Create key (see
API keys for the other choices). Keys look like sk_... and are shown once, so
copy yours straight away. Expose it to your process:
export TOOLWIRE_API_KEY="<your api key>"
# Only when you run the API yourself, e.g. locally:
export TOOLWIRE_BASE_URL="http://localhost:4000"Send the key as Authorization: Bearer <key>. The x-api-key: <key> header is accepted too.
Check it works by listing the toolkits:
curl "https://api.toolwire.example/api/v1/toolkits" \
-H "Authorization: Bearer $TOOLWIRE_API_KEY"3. Add an auth config
An auth config tells your project how users connect GitHub. Open Dashboard, Auth configs and create one for GitHub (managed OAuth needs no setup where it is available). See Connect accounts for the options.
4. Connect an account
Each of your end users connects their own account once. Start the flow, send the user to the
returned redirect_url, then wait until the connection is active.
import { Toolwire } from "@toolwire/sdk";
const client = new Toolwire(); // reads TOOLWIRE_API_KEY and TOOLWIRE_BASE_URL
const conn = await client.connectedAccounts.initiate({
userId: "user_123",
toolkit: "github",
});
console.log("Open this link:", conn.redirect_url);
const account = await client.connectedAccounts.waitForConnection(conn.id);
console.log(account.status); // "active"initiate({ toolkit }) uses the toolkit's only enabled auth config. With several, pass
authConfigId instead. waitForConnection polls every 2 seconds for up to 5 minutes and throws if
the connection fails, expires or is revoked. Once active, we keep the token fresh.
5. Get tools
Ask for the tools a user may use. tools.get needs toolkits or tools, so a model is never
handed every tool by accident.
const tools = await client.tools.get("user_123", { toolkits: ["github"] });Without a provider the result is the API's tool objects, each with an input_schema in JSON
Schema. Pass a provider to get them in your model's format: see
TypeScript SDK.
6. Execute
When the model picks a tool, forward the call:
const res = await client.tools.execute("GITHUB_CREATE_ISSUE", {
userId: "user_123",
arguments: { owner: "acme", repo: "api", title: "Flaky test in CI" },
});
if (res.successful) console.log(res.data);
else console.error(res.error?.code, res.error?.message);A tool that ran and failed returns successful: false; request errors (bad key, unknown tool, no
active connection) throw a ToolwireApiError. The same call over REST:
curl -X POST "https://api.toolwire.example/api/v1/tools/GITHUB_CREATE_ISSUE/execute" \
-H "Authorization: Bearer $TOOLWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id":"user_123","arguments":{"owner":"acme","repo":"api","title":"Flaky test in CI"}}'Where to go next
- Run tools from Claude, OpenAI, the Vercel AI SDK or LangChain with the TypeScript SDK adapters.
- Give Claude Desktop or Cursor the same tools over MCP.
- Read the core concepts, or look at what each toolkit offers in the catalog.
- When a call fails, look up its code in Errors.

