Skip to Content
DocumentationCompanion HubAI for the spatial apps

AI for the spatial apps

Your Companion Hub is the AI server for the spatial apps. Companion Spatial Capture asks a vision model what is in each photo. Companion Avatar asks a chat model what to say and, if you add one, a speech server how to say it. Companion Compass Maps uses no model. The Hub runs on Companion Core or on a computer you already have, and the chat and vision models run on your own hardware unless you choose a cloud service.

The Hub App Store still lists them under other names: Companion Scan for Spatial Capture, Companion Spatial for Compass Maps, and Spatial Companion for Companion Avatar. The apps’ own screens also still show old names, such as Companion Scan and Avatar Companion.

What your server does

The Hub installs the apps and answers their AI requests. It has an OpenAI-compatible API at /api/inference/v1, plus Ollama-compatible routes, and sends each request to an engine you run, such as Ollama, vLLM, oMLX, or Lemonade. With Hub Pool, a chat or embedding request can also go to a paired Hub. Companion Memory is optional.

The status labels are defined on Personas.

CapabilityStatusConditions
Chat with your own modelsWorks todayAn engine and a model
Images in chatWorks todayA model that reads images
EmbeddingsWorks todayOllama or Lemonade. With vLLM or oMLX, the Hub uses Ollama for embeddings
Speech to text and text to speechWorks todayThe Hub makes no speech itself: it forwards to a Lemonade or LocalAI that you run
Image generationWorks todayThe Hub makes no images itself: it forwards to a LocalAI that you run
MCP serverWorks todayLets an agent manage the Hub and its apps. None of the spatial apps uses it
Cloud providersBehind a settingA provider key and the cloud fallback switch

Speech and image requests are not sent to paired Hubs. The Hub looks for LocalAI on port 8080 of its host unless LOCALAI_URL is set, which needs control of the Hub’s environment. The Hub’s own Traefik dashboard uses 8080 by default, and the LocalAI app in the Hub App Store listens on another port, so the Hub doesn’t find it there. This comes from reading the code; a LocalAI setup has not been tested with these apps.

What each app needs

AppNeeds from your serverWho calls the modelDefault modelWithout it
Spatial CaptureA vision model on OllamaThe Spatial Capture Server in the app’s containerqwen3-vl:4bNo object labels
Companion AvatarA chat modelThe app’s proxy, which calls Ollama or an OpenAI-compatible servergemma3:1bOnly the Scripted built-in replies
Avatar headset app (in development)A chat model, a reply-check model, and a speech serverThe headset, which calls Ollama and the speech serverllava:7b (or gemma3:4b), with granite3-guardian:2bNo replies without the reply-check model
Compass MapsNothing: it uses no AI model———
Companion Scan QuestNothing———

Optional extras:

  • Spatial Capture: Companion Memory, to push scans to. A Spatial Capture Server on your own GPU machine, for splats. A detection service for boxes instead of the vision model (grounding-dino-base by default), not in the store build.
  • Companion Avatar: Companion Memory, for recall. Released versions of the avatar read it and don’t save your conversations there (a fix is merged, not released). A speech server you run.
  • Compass Maps: Companion Memory, which it only reads, for your places and events.
  • Companion Scan Quest, a separate, older web app for the Meta Quest 3. It does not use your Hub’s AI. For object detections it can use a computer-vision server that you run on an NVIDIA GPU; without one, capture places pins from the headset’s room model only. The setup for the hosted app has not been tested. Check the app’s Server field before you export: see Where camera frames go.

Where each app itself runs is on its devices page: Spatial Capture, Companion Avatar, and Compass Maps.

Choose the machine

  • Companion Core uses AMD Ryzen AI Max+ processors. It arrives ready to run Companion OS, which is in beta and sets up Docker, Ollama, and Companion Hub. The first start downloads nomic-embed-text for embeddings and gemma3:1b, a small chat model. On AMD Ryzen AI Max machines with at least 30 GB of memory, it also downloads qwen3.6:27b, which can read images. Companion OS installs no speech engine. See which AI models you get.
  • Your own computer can run Companion Hub too. What it can run depends on its memory and graphics card. See system requirements and AI and inference.
MachineChat, including images with a vision modelSpeech through the Hub
Companion Core (AMD)Ollama or LemonadeLemonade or LocalAI, installed by you
NVIDIA GPUOllama or vLLMLocalAI
Apple SiliconOllama or oMLXLocalAI
CPU onlyOllama, small modelsLocalAI

On any of them, Spatial Capture needs Ollama as the Hub’s engine.

The Hub sorts machines into tiers by memory and offers models that fit the tier and the tiers below it. See The catalog.

TierWith a ready GPU runtimeUnified memory, no GPU runtimeOtherwise
High16 GB of VRAM or more32 GB of RAM or more
Medium8 GB of VRAM or more16 GB of RAM or more
Low4 GB of VRAM or more8 GB of RAM or more
CPU only16 GB of RAM or more

On Apple Silicon the GPU uses all of RAM, so the first column applies to total RAM: a 16 GB Mac is High.

As a guide, qwen3-vl:4b for Spatial Capture is 3.3 GB on disk, and gemma3:1b for the avatar is about 0.8 GB. The headset avatar needs room for llava:7b and the 2.7 GB granite3-guardian:2b at the same time.

Spatial Capture: the vision model

Each capture sends one photo to the Spatial Capture Server, which asks a vision model for the objects in it. The store build gets a label, a box, a confidence, and a few words of description for each. The 0.2.2 test build (not released) also asks for facts, such as colours, materials, and an estimated size and mass, and its Fill with AI asks the same model to describe one object. See What’s new in 0.2.2.

Engines. The server’s INFERENCE_MODE picks one. The Hub listing sets ollama.

ModeWhat it does
ollama (default)Calls the Ollama at OLLAMA_HOST with the model in OLLAMA_MODEL, by default qwen3-vl:4b
onnxRuns LFM2.5-VL-1.6B on the server’s CPU. Its model files aren’t in the store image
grounding-dinoCalls a detection service for boxes, with no descriptions. Not in the store build
mockA deterministic test engine

If the named model isn’t pulled, the server tries another tag of the same model, then the first of qwen3-vl:4b, qwen3.5:4b, qwen3.5:2b, llava:7b, and moondream:latest that is pulled, and then any pulled model, even one that can’t read images. It checks Ollama only when it starts. The phone can also run a small model in the browser with WebGPU (switch AI Engine to On-device in the Review & Export panel), but that needs model files that the store image doesn’t include.

On a Hub. The Hub writes OLLAMA_MODEL from its vision model setting, and OLLAMA_HOST only while Ollama is its active engine. With vLLM, oMLX, or Lemonade active, the app finds no Ollama and tags nothing. The Hub hands over your Settings → AI vision pick, or else the one it recommends for your hardware, without checking that it is pulled or that it fits beside your other models.

Thinking models. qwen3-vl:4b and other Qwen3 builds can think before they answer. The store build doesn’t turn that off, so captures are slower and can run past its 55-second limit. The 0.2.2 test build turns thinking off for its requests and allows 2,048 tokens per answer (OLLAMA_NUM_PREDICT).

Speed. With the 0.2.2 test build on the team’s test PC, a capture takes about 3 seconds once the model is loaded and about 7 seconds cold; a description takes about 1 second. Those numbers come from a test image. How good the tags are on real rooms has not been measured yet.

Point Spatial Capture at your Hub

  1. In Settings → AI, use Ollama as the engine.

  2. Pick the vision model there yourself, and pull it into that Ollama:

    ollama pull qwen3-vl:4b
  3. Install Companion Scan from the Hub App Store. It needs Companion Hub 0.2.41 or later.

  4. Open it on your phone over HTTPS. Give the app a vision model shows how to check that the model loaded.

Companion Hub Settings, AI tab: a System Overview card with the detected hardware, and Recommended Models cards, several of them tagged Vision, with their memory and disk sizesCompanion Hub Settings, AI tab: a System Overview card with the detected hardware, and Recommended Models cards, several of them tagged Vision, with their memory and disk sizes
Settings → AI on Companion Hub. Models that can read images carry the Vision tag. The hardware shown is the machine the screenshot was taken on.

To send scans to Companion Memory, connect it from the Hub, then queue a memory push in the editor. Objects found by the scanner don’t become things in Memory yet.

Saved Places are lost when the app’s container is recreated. They are kept inside the container, not in its data folder. Updating, restarting, or stopping and starting the app from the Hub recreates it. That includes the restart after you connect Companion Memory, and later ones when the Hub renews that connection’s key. Scan and world files are kept, but the editor no longer lists the Place, so the scans captured into it no longer appear there. This comes from reading the code and the store listing, and it has not been tested.

What needs a GPU

Most of Spatial Capture runs on a CPU. The reconstruction tools are optional, and apart from ffmpeg the store image includes none of them.

JobHardwareIn the store build
Vision model, in your OllamaCPU, faster on a GPUCalls your Ollama
Scan optimizationCPUYes
Video and photo ingest (ffmpeg)CPUYes
Floor plans from room planesCPUNo, not released yet
Camera poses with COLMAPCPUNo
Gaussian-splat trainingGPU with Vulkan or MetalNo
Dense reconstruction with LingBot-MapGPUNo
Person capture as an animated splatCUDA GPU with 44 GiB or moreNo
Grounding DINO detection serviceGPU or CPUNo

On NVIDIA hardware, the project has run splat training with Brush, and tested the detection service on one RTX 3070, at about 150 to 180 ms per frame. The project’s support table lists no verified run of the GPU tools on AMD hardware, including Companion Core, or on Apple Silicon.

For splats and dense reconstruction, run the Spatial Capture Server  yourself on a machine with a GPU, and install the tools that its documentation lists. Use COLMAP 3.13 to compute camera poses. Keep that server on your own network, not on the public internet.

Companion Avatar: chat, speech, and memory

The avatar’s LLM provider, in Settings → Connection, decides where chat goes:

ProviderPathDefault model
Proxy (recommended)The browser calls the app’s own /api/chat, and the proxy calls the modelThe proxy’s model, gemma3:1b
Ollama (direct)The browser calls Ollama, which must allow the app’s origingemma3:1b
OpenAI-compatibleThe browser sends only with a key built into the app. Settings has no key field, so neither the Hub app nor the website can use itgpt-3.5-turbo
On-device (WebLLM)A model runs in the browser with WebGPUSmolLM2 360M or Gemma 2 2B, chosen by the memory the browser reports (Llama 3.2 3B only above 8 GB)
ScriptedBuilt-in replies, no model—

To use an OpenAI-compatible server, keep Proxy and run the proxy with APP_UPSTREAM set to openai, plus APP_OPENAI_URL and APP_OPENAI_API_KEY. Without APP_OPENAI_URL the proxy sends chat to OpenAI.

The proxy answers /api/chat with a stream, /api/stt and /api/tts for speech, /api/tts/timed for speech with mouth-shape timings, and /api/health for Check connection. Behind it:

  • Chat goes to Ollama, to an OpenAI-compatible server, or through Companion Memory, which adds recall from your memories. On a Hub, the listing hands the proxy the Hub’s model address, key, and chat model. The store install doesn’t connect Memory.
  • Speech to text uses your browser’s own speech recognition by default, which in Chrome and other Chromium-based browsers can send your audio to the browser vendor. In builds from main (not released), with APP_STT_REMOTE on, speech goes to a Whisper-compatible server (/v1/audio/transcriptions), such as faster-whisper, whisper.cpp, or Speaches, instead.
  • Text to speech is your browser’s voices by default, or an OpenAI-style speech server, or HeadTTS for timings that drive the mouth.

In the store build, v0.2.0, don’t expect voice input to start: the build lacks its voice detector’s files. This comes from reading the code. Typed chat doesn’t need them. Builds from the main branch, which are not released, include the files; avatar.ci.computer  runs one.

Check connection with the Proxy provider shows only that Ollama answers, that an OpenAI key is set, or that Memory’s health check answers. Send a message to confirm that a model replies.

Context size. An Ollama server set to a large context window loads each model that large, so a chat model and another model can push each other out of memory. Builds from main (not released) can ask for a smaller window: set APP_OLLAMA_NUM_CTX, for example to 4096, on the proxy. Nothing sets it by default.

The headset app in development calls Ollama directly for replies and checks each reply with granite3-guardian:2b, which must be pulled. The Hub’s catalog has neither llava:7b nor granite3-guardian:2b: install them with cihub models install <name>. It uses a speech server such as Speaches for listening and speaking.

Point the avatar at your Hub

  1. Install Spatial Companion from the Hub App Store. The listing is amd64 only, so an arm64 Hub, such as an Apple Silicon Mac, refuses it with Wrong architecture.
  2. Leave Ollama URL blank. The Hub then fills in the address of its AI service and a chat model, and it replaces an address you type there while it has one to give. A model that thinks before it answers is a poor pick: the proxy doesn’t turn thinking off, and it gives up on a reply after 60 seconds.
  3. Open the app and select Skip in the first-run dialog. Then go to Settings → Connection, select Check connection, and then select Save.

For spoken replies from a server you run (Behind a setting), set Text-to-speech mode to remote in the install form, and Voice to a voice your server has. Then add APP_TTS_URL (the server’s address without /v1) and APP_TTS_MODEL to the app’s proxy service with a Compose override. The server needs the OpenAI /v1/audio/speech route. This has not been tested on a Hub install.

The Hub listing installs no speech server. The Speaches app in the Hub App Store is an OpenAI-compatible speech server that runs on the CPU. For the avatar’s proxy to reach it, set Speaches to This Machine Only, switch on Open this app’s port on your network for it, and use http://<hub-address>:18898, or the port on its page, as the server’s address. The avatar’s proxy sends no API key to a speech server, so leave Speaches’ API Key blank. With the port open and no key, anyone on your network can use Speaches, and the Hub login isn’t in front of that port. Don’t set Speaches to Public Web. It has not been tested with the avatar.

Companion Avatar has every speech setting and how to connect Companion Memory.

Compass Maps: no model

Compass Maps shows places from public data services and, if you connect it, your Companion Memory, which it only reads. It uses no AI model. A planned camera-based position fix would run on your own Spatial Capture Server. A separate planned trial would send camera images to Google, only with your consent. See the Compass Maps roadmap.

There is no AI to set up. Open xr.ci.computer , or install Companion Spatial from the Hub App Store, which has an older build (v0.1.0). To see your own places and events, enter your Companion Memory address and a read-only API key with no scopes selected in Settings → Companion Memory. Your Memory server must also allow the app’s address. The connection has been tested against stand-in servers only. Companion Compass Maps gives the steps.

Reaching your Hub from a phone or headset

Camera, microphone, and motion features work only on a secure origin, and the headset apps refuse plain HTTP, so phones and headsets need an HTTPS address for each app:

  • Over Tailscale. Turn on Tailscale on the device and use the app’s private VPN address, or, for the Hub’s AI API, the Hub’s own Tailscale name, which Tailscale Serve publishes over HTTPS. See Tailscale. The default private VPN app addresses don’t ask for the Hub login, so anyone on your tailnet can open the app; separate addresses for VPN apps put the login in front.
  • From anywhere. Expose the app with the Hub login in front of it.
  • Not on a plain LAN address. An http://<hub-lan-address>:<port> address is plain HTTP: camera and microphone features won’t start from it, and the headset apps refuse it.

Use your Hub from your own XR app

Many open-source Quest and Unity samples send camera images or speech to OpenAI. Your Hub answers the same API at /api/inference/v1, so you can point such a sample at your own hardware. See Use your Hub from an editor or SDK for keys and addresses.

You needUse
Base URL from a headsethttps://<hub-tailscale-name>/api/inference/v1 over Tailscale, or your Hub’s public name
KeyAn Inference key, sent as Authorization: Bearer <key>
Vision requestsPOST /chat/completions with an image_url part holding a base64 data: URI, and a vision model you have pulled
ModelAn installed tag such as qwen3-vl:4b, not auto: auto doesn’t check that the model can see
SpeechPOST /audio/transcriptions and /audio/speech answer only with a Lemonade or LocalAI behind the Hub, or a cloud provider through the fallback switch. Otherwise point the sample at a Speaches app
curl https://<hub-tailscale-name>/api/inference/v1/chat/completions \ -H "Authorization: Bearer <inference-key>" \ -H "Content-Type: application/json" \ -d '{"model": "qwen3-vl:4b", "max_tokens": 300, "messages": [{"role": "user", "content": [ {"type": "text", "text": "What objects are in this picture?"}, {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,<image>"}}]}]}'

The Hub passes the request to its engine as it is, so whether image parts work depends on the engine and the model: test with your model first. GET /models lists the catalog’s models, including ones not pulled yet, and doesn’t say which can see. A JSON request may be up to 64 MB, and an audio file up to 25 MB. There is no Realtime or WebSocket API, so samples built on OpenAI’s Realtime API need rewriting.

What is not available yet

Not available yetStatusWhat you can do today
Object detection you add from the HubPlannedSpatial Capture labels objects with a vision model. Its repository has a detection service that you can run yourself
Splat training you add from the HubPlannedRun the Spatial Capture Server yourself on a machine with a GPU
Image to 3D in the Hub’s AI APINot yetPhoto Time Machine is a separate app for 3D models from images or video. It isn’t connected to these apps
Visual positioning (where a camera is in a room)PlannedNothing
A speech engine set up for you and handed to appsPlannedInstall Speaches, or run Lemonade or LocalAI yourself
Spatial Capture’s tags on a vLLM, oMLX, or Lemonade HubPlannedUse Ollama as the Hub’s engine
Connecting the avatar or Compass Maps to Memory from the HubPlannedUse a Memory API key. Compass Maps also takes your Memory username and password. Spatial Capture already connects this way
Saving your conversations with the avatar to your MemoryNot yetNothing: the avatar only reads Memory

What leaves your network

  • Spatial Capture. Photos and scans go to your Spatial Capture Server, and photos go on to the Ollama it uses; with a paired Hub, a labelling request and its camera frame can run on that Hub. With location on, the store build also sends your position to OpenStreetMap’s Nominatim service to look up your street address, without asking first. Newer source, not released, asks first. Map tiles, fonts, a Companion Memory push, and CI Account sign-in send more. See What leaves your network.
  • Companion Avatar. With the Proxy provider, chat goes to your proxy and your model server. With a paired Hub, a chat request, including any recalled memories in it, can run on that Hub. The browser’s own speech recognition, the default for voice input, can send audio to the browser vendor, and some browser voices are online services. The in-browser voice, on-device models, and custom avatar addresses download from the internet. See Companion Avatar.
  • Compass Maps. Requests to public map, Wikipedia, weather, and flight services carry your position. See Companion Compass Maps.
  • Crash reports. The Hub installs of the avatar and Compass Maps have Share crash reports on by default. While it is on, error reports can go to Companion Intelligence, and Compass Maps also sends performance traces and sampled screen replays, which can include your exact position. Turn it off in the app’s settings on your Hub. See Crash reporting.
  • Companion Scan Quest. With its Server field empty on the hosted app, the export upload, and camera frames for models other than Local, go to the app’s own address. See Where camera frames go.
  • Cloud models. The Hub sends a request to a cloud provider only when you add a key and the cloud fallback switch, CI_HUB_ALLOW_CLOUD_FALLBACK, is on. In release images since v0.3.14, that variable is unset, so the Hub does not fall back to a cloud provider. With the switch on, the Hub also gives AI apps, such as the avatar, the keys of the providers you enabled. An app that you point at a cloud API yourself sends to it directly: an avatar proxy run with APP_UPSTREAM set to openai and no APP_OPENAI_URL sends chat to OpenAI. Ollama model tags that end in :cloud or -cloud run on Ollama’s servers whatever the switch says. See Cloud providers and the fallback switch and How an AI request is routed.

For other requests that an app makes to outside services, see its page.

What’s planned

Nothing here has a date.

  • One vision service for Spatial Capture that finds, outlines, and captions objects, packaged as a GPU image, and reconstruction on the CPU in the store image.
  • The Avatar Gateway: one proxy for every Avatar app, with a sign-in, the reply check, and Speaches in the listing. The headset app moves onto it, so it can use a model behind a Hub login.
  • Positioning on your own server: a camera-based fix against the maps of your places, for Spatial Capture and Compass Maps, off by default.
  • Scene tools for agents: your Hub’s agents can ask what is in a scanned room, read-only.

See the roadmaps for Spatial Capture, Compass Maps, and Companion Avatar.

Status as of 29 November 2026, for Companion Hub v0.3.16, Companion Memory 2026.11.26, and the app builds in the Hub App Store. What is marked not released is in a test build or on a main branch only. Model defaults and engines change between releases; each app’s page names the build it describes.

Last updated on