Stacklink TypeScript SDK
Stacklink supplies executable, governed tools to an agent harness. The selected harness owns the model call, tool loop, and final answer.
Install the public Stacklink package with only the harness packages your application uses:
npm install @stacklink/sdk
The complete guides and certified recipes live at docs.stacklink.in. npm is the package delivery system, not the primary documentation surface. Stacklink does not display registry download badges in its product or documentation.
Certified agent harnesses
| Harness | Stacklink adapter | Supported language |
|---|---|---|
| Vercel AI SDK | createStacklinkVercelTools(session) from @stacklink/sdk/vercel-ai |
TypeScript |
| OpenAI Agents SDK | createStacklinkOpenAIAgentsTools(session) from @stacklink/sdk/openai-agents |
TypeScript |
| Claude Agent SDK | createStacklinkClaudeAgentToolConfig(session) from @stacklink/sdk/claude-agent |
TypeScript |
Every recipe follows the same lifecycle:
import { Stacklink } from '@stacklink/sdk';
const stacklink = new Stacklink({
apiKey: process.env.STACKLINK_API_KEY,
baseUrl: process.env.STACKLINK_BASE_URL ?? 'https://api.stacklink.in',
});
const session = await stacklink.create({
tenantId: 'acme',
userId: 'user_123',
metaTools: { surface: 'connector' },
});
try {
// Pass the selected Stacklink adapter output to your agent harness.
} finally {
await session.close();
}
The complete Vercel, OpenAI Agents, and Claude Agent examples shown by the Stacklink Overview are generated from the executable files under examples/sdk/. The dashboard, documentation, and certification tests all read those same files.
Memory adapters are separate
The withStacklinkMemory exports for Vercel AI SDK, the raw OpenAI client, and OpenAI Agents remain separate Memory integrations. They do not replace the agent-tool adapters above and are not part of basic Overview onboarding.
Exact tested versions are published in @stacklink/sdk/compatibility.json. The SDK is proprietary and is provided under the applicable Stacklink agreement.