import { createFileRoute } from "@tanstack/react-router"; const OPENROUTER_KEYS_URL = "https://openrouter.ai/settings/keys"; export const Route = createFileRoute("/_app/help/openrouter-api-key")({ component: OpenrouterApiKeyHelpPage, }); function OpenrouterApiKeyHelpPage() { return (
OpenSEO needs the OPENROUTER_API_KEY secret before AI
features like SAM, the in-app SEO agent, can run. It is optional —
everything else in OpenSEO works without it.
OPENROUTER_API_KEY secret in
your environment:
.env
.env.local
Compute ->{" "}
Workers & Pages
and open your OpenSEO Worker.
Settings.
Variables & Secrets and add a new secret
named
OPENROUTER_API_KEY.
Or set the same secret from your terminal with:
npx wrangler secret put OPENROUTER_API_KEY
Paste your OpenRouter API key when prompted.