Installation
Quick Setup
1. Install the TrikHub CLI globally
npm install -g @trikhub/cli
trik --version2. Add the gateway to your project
npm install @trikhub/gateway3. Install triks
trik search <keywords>
trik install @org/trik-nameIf a trik requires configuration (e.g. API keys), the CLI will display setup instructions after install. Add the required keys to .trikhub/secrets.json (project-level) or ~/.trikhub/secrets.json (global). See Configuration for details.
4. Verify installation
trik listImportant: Triks are distributed through the TrikHub registry, not npm or PyPI.
trik install @scope/namedownloads from the registry. Thenpm installandpython3 -m pip installcommands shown above install TrikHub’s own packages (CLI, gateway, SDK), not individual triks.
Requirements
- git (required for
trik install)
- Node.js 22.5 or later
- npm, yarn, or pnpm
What’s Included
| Package | Purpose |
|---|---|
@trikhub/cli | Command-line tool for managing triks |
@trikhub/gateway | Runtime for loading triks and routing messages (handoff model) |
@trikhub/manifest | TypeScript types for trik manifests (transitive dependency) |
@trikhub/sdk | For building triks (wrapAgent, wrapToolHandlers) — not needed for consuming |
Cross-Environment Support
The TypeScript gateway can run Python triks via a worker subprocess. This means you can use any trik regardless of what language it’s written in. See Cross-Environment Execution for details.
Next Steps
With packages installed, continue to the LangChain Integration.