Norman Chat
Configuration

Configuration

Environment Variables

VariableRequiredDefaultDescription
NEXTAUTH_URLYesBase URL for NextAuth.js
NEXTAUTH_SECRETYesSecret for JWT session encryption
SHELLAPPS_CLIENT_IDYesShellApps OAuth client ID
SHELLAPPS_CLIENT_SECRETYesShellApps OAuth client secret
NORMAN_ENGINE_URLNohttp://localhost:3001Norman Engine service URL
NORMAN_AGENT_URLNohttp://localhost:3004Norman Agent service URL
NORMAN_LIBRARY_URLNohttp://localhost:3002Norman Library service URL
MONGODB_URIYesMongoDB connection string
STREAM_TIMEOUTNo30000Upstream stream timeout in ms
CHAT_HISTORY_LIMITNo50Max chats returned in history

Authentication Setup

Register a new OAuth application in ShellApps:

  1. Go to ShellApps developer console
  2. Create a new application
  3. Set callback URL: {NEXTAUTH_URL}/api/auth/callback/shellapps
  4. Copy the client ID and secret to your .env

Service Dependencies

Norman Chat requires:

  1. MongoDB — Chat history storage
  2. Norman Engine — LLM completions (v0.1 mode)
  3. Norman Agent — Agent completions (v1 mode)
  4. Norman Library (optional) — File management
  5. ShellApps — Authentication

© 2026 Shell Technology. All rights reserved.