loading
loading
@trickest/sdk
Runs, sessions, Live Tables, memory, and skills behind one TrickestClient. Native fetch, one Zod dependency, auto-pagination.
Token comes from the environment. The client fails fast when it is missing.
import { TrickestClient } from "@trickest/sdk"// Reads TRICKEST_TOKEN; throws if missing.const client = new TrickestClient()for await (const space of client.spaces.list()) {console.log(space.name)}// One page at a time:const page = await client.spaces.listPage()
$ npm install @trickest/sdk$ export TRICKEST_TOKEN=<token>$ npx tsx quickstart.ts
Runs, tables, agent turns, memory, skills. Typed methods, no REST plumbing.
new TrickestClient()
21 lazy namespaces behind one object. Native fetch, one Zod dependency.
See moreclient.runs.execute
Fleet and vault resolve from the workflow. Re-run a single node, memoized.
See moreclient.database.query
A filter expression, not SQL. queryAll pages past the 500-row cap.
See moreclient.memory.search
Hybrid vector and keyword recall over the session vault.
See morerunTurn sends a prompt to an agent session and waits for the turn to seal. Ask for JSON and the answer parses straight into your own shape.
1import { TrickestClient, runTurn } from "@trickest/sdk"2 3const client = new TrickestClient()4const handle = await client.sessions.handle(5 sessionId,6 vaultId,7)8 9// Ask the agent to answer as JSON.10const turn = await runTurn(handle, {11 prompt: "Summarize this changelog. Reply as JSON.",12})13 14// The answer parses into your own shape.15const result = JSON.parse(turn.answer)
{"title": "Analytics 2.4","released": "2026-07-14","highlights": ["Saved views on every report","Bulk CSV export","Faster cold starts"],"breaking": false}
Runs, agent turns, live deltas, TQL. Copy one as a starting point.
Pass { node } and the SDK reads the workflow graph, finds the last completed run whose upstream subjobs succeeded, and memoizes from it. Fleet and vault resolve from the workflow when you leave them out.
import { TrickestClient } from "@trickest/sdk"const client = new TrickestClient() // reads TRICKEST_TOKEN// Full run. Fleet + vault auto-resolve from the workflow.const run = await client.runs.execute(workflowId, {inputs: { domain: "example.com" },})// Single node. Upstream outputs memoized from a recent run.const partial = await client.runs.execute(workflowId, {node: "httpx",})
Pick the next cut of the stack.
Get a personalized demo
A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.