Web Module
Installation
npm install @loopstack/webRegister the module in your app module:
import { Module } from '@nestjs/common';import { ClaudeModule } from '@loopstack/claude';import { LlmProviderModule } from '@loopstack/llm-provider';import { WebModule } from '@loopstack/web';
@Module({ imports: [LlmProviderModule, ClaudeModule, WebModule],})export class AppModule {}The optional summarization step (triggered when a prompt arg is passed to the tool) runs through the LLM provider layer: the tool’s provider arg, else the LlmProviderModule default provider, else claude. The model is the tool’s model arg, else CLAUDE_WEB_FETCH_MODEL, else claude-haiku-4-5-20251001 — pass model when summarizing with a provider other than claude. The step needs that provider’s API key:
ANTHROPIC_API_KEY=sk-ant-...A summarized result returns the provider, model and token usage as LlmResultMeta metadata, which @loopstack/quota charges to the llm-cost quota.