Installation

Quick Setup

1. Install the TrikHub CLI globally

npm install -g @trikhub/cli trik --version

2. Add the gateway to your project

npm install @trikhub/gateway

3. Install triks

trik search <keywords> trik install @org/trik-name

If 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 list

Important: Triks are distributed through the TrikHub registry, not npm or PyPI. trik install @scope/name downloads from the registry. The npm install and python3 -m pip install commands 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

PackagePurpose
@trikhub/cliCommand-line tool for managing triks
@trikhub/gatewayRuntime for loading triks and routing messages (handoff model)
@trikhub/manifestTypeScript types for trik manifests (transitive dependency)
@trikhub/sdkFor 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.