settings/integrations
Integrations
Inbound API tokens for the MCP server, LangChain tool, and Vercel AI SDK provider. These are distinct from outbound LLM keys (Anthropic, OpenAI, Tavily) configured in /settings.
Issue a new token
Tokens authenticate the MCP server, LangChain tool, Vercel AI SDK provider, or any other client. The same cost meter, lens guardrails, and rate limits apply as in the web UI.
Active tokens
Revoke a token at any time. Revocation is immediate and cannot be undone.
Loading…
Install & integrate
Same auth, same cost meter, same audit log as the web UI. Cookbook examples live in the docs site.
/mcp
pnpm add -g @polymath/mcp-server polymath-mcp-server --token $POLYMATH_API_KEY
Add to ~/.config/claude/claude_desktop_config.json under "mcpServers". See polymath/packages/mcp-server/README.md.
/langchain
pnpm add @polymath/langchain-tool
import { createPolymathTools } from '@polymath/langchain-tool';
const tools = createPolymathTools({ apiKey: process.env.POLYMATH_API_KEY! });/ai-sdk
pnpm add @polymath/vercel-ai-provider
import { polymath } from '@polymath/vercel-ai-provider';
const { text } = await generateText({ model: polymath('synthesize'), prompt });