Requirements
- Node.js 20+ or Bun 1.0+
- TypeScript 5+
- An API key from the dashboard or
runtools auth keys create
Install
Configure Auth
.env
Options
Verify
Framework Example
app/api/sandboxes/route.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install the Runtools SDK
runtools auth keys createnpm install @runtools-ai/sdk
RUNTOOLS_API_KEY=rt_live_xxx
import { RunTools } from '@runtools-ai/sdk';
export const rt = new RunTools({
apiKey: process.env.RUNTOOLS_API_KEY,
});
const rt = new RunTools({
apiKey: process.env.RUNTOOLS_API_KEY,
apiUrl: 'https://api.runtools.ai',
authUrl: 'https://auth.runtools.ai',
toolsUrl: 'https://tools.runtools.ai',
});
const page = await rt.sandbox.listPage({ limit: 5 });
console.log(page.data.length, page.hasMore);
import { RunTools } from '@runtools-ai/sdk';
const rt = new RunTools({ apiKey: process.env.RUNTOOLS_API_KEY });
export async function POST() {
const sandbox = await rt.sandbox.create({ template: 'base-ubuntu' });
return Response.json({ id: sandbox.id });
}