Get Started →
DocsSDK & ExamplesAPI Reference
Getting Started / Frameworks

NestJS Interceptor Setup

Use NestJS interceptors to report request telemetry and evaluate security policies.

Add structured lifecycle interceptors to log reasoning tokens and control route budgets in NestJS.

Integration

Inject the interceptor in your NestJS module:

import { Module } from '@nestjs/common';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { RakshexInterceptor } from '@rakshex/nestjs';

@Module({
  providers: [
    {
      provide: APP_INTERCEPTOR,
      useClass: RaksHexInterceptor,
    },
  ],
})
export class AppModule {}