Replace Vercel AI SDK with Anthropic Claude Agent SDK. Add standalone agent server (packages/agent-server/) with MCP tools, JWT auth, and SSE streaming. Introduce bridge API routes (src/app/api/compass/) and custom SSE hooks (use-agent, use-compass-chat) replacing useChat. Remove provider.ts, tools.ts, system-prompt.ts, github-tools.ts, usage.ts, and old agent route.
15 lines
327 B
Plaintext
15 lines
327 B
Plaintext
# Required
|
|
AGENT_AUTH_SECRET=your-secret-key-here
|
|
|
|
# Optional - Anthropic API (can be overridden by user BYOK)
|
|
ANTHROPIC_API_KEY=sk-ant-...
|
|
|
|
# Optional - OpenRouter mode
|
|
# ANTHROPIC_BASE_URL=https://openrouter.ai/api/v1
|
|
|
|
# Optional - CORS configuration
|
|
ALLOWED_ORIGINS=http://localhost:3000
|
|
|
|
# Optional - Server port
|
|
PORT=3001
|