SupaKnock
Menu
Browse topics AI providers and embeddings
← Developer reference

Connect your app

AI providers and embeddings

Choose chat providers, verify credentials and set up knowledge search.

AI chat is optional. Open Administration → AI providers to add an API key for OpenAI, Anthropic Claude, OpenRouter, Ramp Router (router.com), KodeKey, Gemini, Mistral or Groq. You can also connect a custom OpenAI-compatible chat endpoint.

In a project's AI support → Models & keys, choose the provider, select an account key and model, then run the capability check. Approve your knowledge sources and enable AI when the project is ready. Tools have their own checks and switches. Adding a key never enables AI on its own.

Your own chat endpoint

Choose Custom OpenAI-compatible in AI providers. Enter its base URL (including /v1 if needed), exact model IDs and API key. SupaKnock appends /chat/completions. Leave the key empty only for an endpoint without authentication. To replace a connection, enter its URL, models and key together.

Choose embeddings separately

Open Administration → AI runtime. Keep local EmbeddingGemma, or choose an external OpenAI-compatible embedding endpoint. Supply its base URL, embedding model ID, output dimensions and API key. SupaKnock appends /embeddings and checks it with synthetic text before saving. For OpenAI, an example is https://api.openai.com/v1, text-embedding-3-small, 1536 dimensions.

External embeddings send approved passages and search questions to that endpoint. Your source documents and vectors stay in your database. Your chat provider receives the question, relevant passages and conversation context. Embedding usage is billed separately by the provider and is not counted in project chat-generation limits.

Changing embeddings turns AI off for every project and queues approved sources for reindexing. Your originals are kept. Use Queue remaining sources if the queue fills, then turn each project's AI back on after indexing finishes.

Custom endpoints require public HTTPS by default. To use a private service or HTTP intentionally, set ALLOW_INTERNAL_AI_ENDPOINTS=true in your container environment. Metadata addresses remain blocked and redirects are never followed.

API clients use /api/v1/ai/keys for the account credential library and /api/v1/ai/embeddings for installation embedding settings. Both require a native administrator session. The API reference includes all fields; the repository's docs/ai-provider-expansion.md explains setup and reindexing in detail.

Connected AI tools

Give a project access to public, read-only data from your app through MCP. Add an encrypted service connection in Connected AI tools, discover and review its tools, then select the permitted tools in Project settings → AI support → Connected tools.

Choose support knowledge, connected tools only, or both. Tools-only chat does not need an embedding model. Each selected generation key and model must have verified tool access. Existing projects remain knowledge-only until you explicitly change them.

For podcast pages, select the episode context binding and approve get_episode, search_transcript and get_transcript_window. The widget can snapshot an episode ID and playback position on each message, then show validated transcript excerpts with timestamp links. Support and episode questions share one conversation.

const chat = SupaKnockChat.mount('#chat', {
  server: 'https://YOUR-SUPAKNOCK', project: 'YOUR_PROJECT',
  presentation: 'bar',
  context: {version: 1, resource: {kind: 'podcast_episode', id: 'EPISODE_ID'}}
});
chat.open({intent: 'episode'});
// Your router must clear context when leaving an episode:
// chat.setContext(null);

Compatible servers implement MCP 2025-11-25 Streamable HTTP on a public HTTPS endpoint without redirects. A dedicated service token may protect visitor-safe reads. It never authenticates an individual customer; subscriber-only data, writes and delegated user access are not supported in this release.

Follow the MCP and podcast integration guide for schemas, limits, exact result examples, player callbacks, storage and troubleshooting. Check your deployed server's OpenAPI before using newly added routes.

These docs describe the current source. Check your server’s /api/v1/openapi.json for the version you run.