On this page
AI capabilities: built-in agix and connectors
Last updated: 2026-11-17
True AGI cannot be achieved by a single model — it requires combining different models.
Keragi has two AI paths that can be used together:
- Built-in agix: Keragi’s own AI engine, deployed as a WASM (or native) resource. It covers text, vision, images, video, music, text-to-speech (TTS), speech-to-text (ASR) and knowledge bases.
- Connectors: bring an already signed-in model client (Codex, Claude, DeepSeek, …) into a conversation; execution happens on the user’s side, Keragi only provides the conversation and permission boundary.
The point of built-in agix is not one model that does everything. It is putting text, vision, image, video, music and speech models on the same conversation path and dispatching to each as needed; connectors then bring in models already available on the user’s machine to cover capabilities outside the built-in catalog.
Status: entries below are marked
availableorreference. Since 1.0.0 the built-in models work on both native and WASM deployments; what you can actually use depends on the keys and upstream quota you configure.
1. Built-in agix
1.1 Supported models
The model name is Keragi’s routing name; the current catalog has 16 entries. The upstream model is set by model_id and can be overridden in the app.
| Routing name | Capability | Input → Output | Default upstream model | User key |
|---|---|---|---|---|
deepseek-flash | Text chat + image understanding (streaming) | text/image → text | deepseek-chat | Client key (DeepSeek) |
deepseek-v4-pro | Text chat (streaming) | text → text | deepseek-chat | Client key (DeepSeek) |
deepseek-tts | Speech synthesis | text → audio | deepseek-tts | Client key (DeepSeek) |
deepseek-asr | Speech recognition | audio → text | deepseek-asr | Client key (DeepSeek) |
qianwen-chat | Text chat (streaming) | text → text | qwen-plus | Client key (Qianwen) |
qwen-vl | Vision understanding | text+image → text | qwen-vl-plus | Client key (Qianwen) |
qwen-image | Image generation | text → image | qwen-image-plus | Client key (Qianwen) |
qwen-video | Text-to-video | text → video | wanx2.1-t2v-turbo | Client key (Qianwen) |
qwen-video-i2v | Image-to-video | text+image → video | wanx2.1-i2v-turbo | Client key (Qianwen) |
qwen-tts | Speech synthesis | text → audio | qwen-tts | Client key (Qianwen) |
qwen-asr | Speech recognition | audio → text | paraformer-v2 | Client key (Qianwen) |
seedance | Text-to-video (Seedance 2.5 / Ark) | text → video | doubao-seedance-2-5-260628 | Client key (Ark) |
seedance-flash | Text-to-video (Seedance 2.5 Flash / Ark) | text → video | doubao-seedance-2-5-flash-261115 | Client key (Ark) |
openai-chat | OpenAI text chat | text → text | gpt-4o (overridable) | Client key (OpenAI) |
claude-chat | Claude text chat (OpenAI-compatible endpoint) | text → text | claude-sonnet-4-5 (overridable) | Client key (Anthropic) |
stable-audio | Music generation | text → audio | stable-audio-2.5 | Client key (Stability) |
Notes:
- Video, music and ASR are async tasks: submit, poll, then localize the result to
/v1/media/{uuid}.{ext}. Tasks keep running if the client disconnects and can be queried through the task status route. - Foreign providers use the OpenAI-compatible protocol:
openai-chattargets the OpenAI API;claude-chattargets Anthropic’s OpenAI SDK compatibility endpoint (https://api.anthropic.com/v1). Users add the key in the client; base URL and model id can be overridden withAGIX_OPENAI_URL/MODELandAGIX_ANTHROPIC_URL/MODEL. The native Anthropic protocol is not implemented; Claude Code and similar clients connect through the connector. seedanceandseedance-flashshare Client key (Ark) /AGIX_ARK_BASE_URL; their model IDs can be overridden withAGIX_SEEDANCE_MODEL/AGIX_SEEDANCE_FLASH_MODEL.- Image and TTS are single requests; the upstream URL is localized immediately.
- Vision and ASR need images/audio uploaded in the turn (or carried in history); the model references them with
image_index/audio_indexand Keragi resolves them. - Text models can point at any OpenAI-compatible endpoint (custom
base_url+model_id), still text → text.
1.2 Tools: search, fetch and OCR
| Tool | What it does | Dependency | Status |
|---|---|---|---|
web-search | Web search returning titles, links and summaries with sources | DeepSeek Search API (/v1/tools/search); falls back to the model’s own search | available |
web-fetch | Open a URL and return Markdown text (up to 8000 chars) | DeepSeek Fetch API (/v1/tools/fetch) | available |
ocr | Extract text from an image | Reuses a vision model (qwen-vl or deepseek-flash) | available |
Configuration:
AGIX_WEB_SEARCH_URL=https://api.deepseek.com/v1/tools/search
AGIX_WEB_FETCH_URL=https://api.deepseek.com/v1/tools/fetch
# Search defaults to the user's own model key; do not put it in .env
AGIX_WEB_SEARCH_MODEL=deepseek-flash
The standalone DeepSeek OCR endpoint (/v1/tools/ocr, multipart) is not wired into WASM yet (the host only offers JSON HTTP calls); WASM deployments use a vision model for OCR.
1.3 Knowledge base
- Named knowledge bases with entry CRUD and document upload (Markdown/PDF).
- Whether a knowledge base participates in answers depends on the deployment and retrieval configuration. Retrieval is still being completed, so do not assume automatic semantic search. With an embedding provider configured, vector retrieval is preferred; without one it falls back to keyword matching.
- Knowledge bases are per-user and do not change the E2EE boundary.
1.4 Tool loop
Built-in agix runs a “brain → tool → brain” loop: the text model acts as the brain, decides whether to call a tool (image, video, music, speech or knowledge base), the result is fed back, and it continues for up to AGIX_AUTO_MAX_ITER rounds (default 5). The text model handles understanding and dispatch while dedicated models do the actual generation or recognition — this is where model combination happens inside one conversation. Multi-step requests such as “look at the image, then read it aloud” or “generate a video, then explain it” are decomposed automatically.
2. Connectors
| Dimension | Built-in agix | Connector |
|---|---|---|
| Model source | API keys configured on the server | Already signed-in client on the user machine |
| Deployment | Server resource (WASM or native) | Separate connector server or local process |
| Permission boundary | Server scopes + quota | Connector approval + scopes; execution stays on the user side |
| Best for | Uniform models, central quota, keys configured centrally on the server | Reusing subscriptions, local files/tools, sensitive environments |
Connector notes:
- Install the connector resource (
wasmx + conn); it can run on a different machine from the main server. - Permissions are granted only to trusted accounts; high-risk actions need approval on clients that support it, one-shot execution is not gated by conversation approval, and audit stays on the connector.
- It is not a cloud-hosted bot and it is not an E2EE channel.
- Connectors and built-in models coexist: use built-in models for day-to-day chat, switch to a connector session when local capabilities are needed.
3. Deployment and keys
- Server-wide: put
AGIX_*keys in.env, shared by all users. - Per user (BYOK): add a model key in the app (Settings → AI models & quota). That is also how you point a model at a local/intranet service.
- Local TTS/ASR: possible. Point
qwen-tts/qwen-asrat an intranet service that implements the DashScope-compatible shapes (TTS:/services/aigc/multimodal-generation/generation; ASR: async/services/audio/asr/transcription+/tasks/{id}). Other protocols need an adapter. - WASM vs native: both support the media capabilities; WASM proxies network calls through the host, so outbound HTTP must be allowed (
allow_http).
FDE delivery note
Keep AI inside one narrow scenario, document what it may answer, when to escalate and who owns each output; see the FDE delivery guide.
4. Boundaries
- E2EE covers private/group text only; AI conversations, connector sessions and media have their own boundaries — no end-to-end guarantee.
- AI is part of the client experience, not an always-on server-hosted agent.
- Video/music generation is slow, bounded by upstream quota and concurrency.
- Media results are stored server-side; task records expire after 24 hours by default.
- Never a replacement for PLC/SCADA/fire-safety/medical systems; actuators need human confirmation, emergency stop and independent safety measures.
5. Next steps
- Configure a text model and verify chat.
- Add image/video/music/voice models as needed, one at a time.
- Deploy a connector only when local files or existing subscriptions are required.