factchat-gateway
Installation
SKILL.md
FactChat Gateway: adding AI to your app
One API key calls models from several vendors (Claude, GPT, Gemini, …) in the same format. It is OpenAI-compatible, so only base_url changes.
BASE = https://factchat-cloud.mindlogic.ai/v1/gateway
Auth = Authorization: Bearer <API_KEY>
1. Get a key (user, in the browser)
Log in to FactChat (https://factchat-cloud.mindlogic.ai) → admin → API keys → issue one. It is shown once. Tell the user to put it in .env.local; never echo the value into the chat.
FACTCHAT_API_KEY=fc_...
Do not prefix it with NEXT_PUBLIC_. That would expose it to the browser.
A 403 means the gateway is off for the organization → ask Jaeho. A 404 Model not found means a free-tier model was requested → pick one from step 2.