Setting up your models
CrowdCode™ talks to a model server: the program that runs the AI model. Run the guided setup once, and again any time you want to change something:
ccode setup
It asks plain questions, checks each answer, and writes two files for you. You never need to edit them by hand.
Where can the model run?
1. On this computer. Setup looks at your GPU and memory and lists the models that fit, each with a score for how well it runs here. Pick one by number, or type any Hugging Face model id. CrowdCode™ then:
- downloads the model, or has Ollama pull it, if it isn't here yet;
- chooses the runtime and precision that suit your computer, from vLLM, llama.cpp, Ollama and AirLLM;
- sets the context to what fits in memory.
Your choices are explained in Choosing a model.
CrowdCode™ starts the model when it opens and stops it when it closes.
2. On another computer, over SSH. Use this for a GPU machine in your office, your lab, or a rented one on the internet. CrowdCode™ logs in with an SSH key (never a password), starts the model there, and stops it when you quit. The model stays private to that machine. CrowdCode™ reaches it through an encrypted SSH tunnel, so nothing is opened on the network.
If setup says it can't log in yet, create a key and copy it over once:
ssh-keygen -t ed25519
ssh-copy-id you@gpu-box
3. At an address. Use this for a server someone already runs, for example http://gpu-box.lan:8000/v1. CrowdCode™ uses it but never starts or stops it. If it needs an API key, setup asks for the name of an environment variable holding the key. The key itself never goes in CrowdCode™'s files.
4. Nothing special. CrowdCode™ finds a model server already running on this computer: vLLM, llama.cpp's llama-server, or Ollama.
Choosing and switching models
ccode models # open models, scored for this computer
ccode models search qwen coder # anything on Hugging Face, scored the same way
ccode models info Qwen/Qwen3-8B # one model in detail, for each runtime
ccode models use Qwen/Qwen3-8B # make it the coding model (downloads it first)
In a session, /model shows the same list and /model 3 (or /model ORG/NAME) switches to a model. The model server restarts with it and your conversation carries on. /model search NAME finds any other model.
The score (0–100) says how usable a model is on your computer:
- whether it fits in GPU memory, and at what precision: full (BF16), FP8, or a 4-bit build;
- how much conversation fits next to it;
- how fast it will answer.
"trains here" means CrowdCode™ can fine-tune it on this GPU.
Runtimes
| Runtime | Good for | Notes |
|---|---|---|
| vLLM | NVIDIA GPUs | The fastest, and the only one CrowdCode™ fine-tunes with. Uses the model's original files from Hugging Face. |
llama.cpp (llama-server) | NVIDIA, Apple silicon, CPU | Runs GGUF builds (compressed copies). CrowdCode™ downloads the right one from Hugging Face. |
| Ollama | NVIDIA, Apple silicon, CPU | Pulls models itself (from ollama.com, or any Hugging Face GGUF as hf.co/ORG/REPO). If an Ollama is already running, CrowdCode™ uses it and never stops it, but unloads the model it loaded when you quit. |
| AirLLM | NVIDIA | Runs models far bigger than your GPU, such as a 70B model on an 8 GB laptop GPU, by loading one layer at a time. It is very slow: every word reads the whole model from disk again, so one reply takes many minutes. CrowdCode™ offers it only for models nothing else can run here. Free and open source (Apache-2.0). |
To pick a runtime yourself, use ccode models use NAME --engine llama.cpp.
If a runtime is missing, CrowdCode™ offers to install it in its own folder, with no administrator rights needed:
ccode install vllm # a Python environment with vLLM (several GB)
ccode install llama.cpp # the prebuilt llama-server that matches your GPU, checked before use
ccode install airllm # a Python environment with AirLLM (several GB)
Ollama installs system-wide, so CrowdCode™ shows you the command for it instead of running it.
Very large models with AirLLM
AirLLM keeps the model on disk and runs it one layer at a time, so only one layer has to fit on the GPU. In ccode models, such a model shows a low score and its speed in seconds per token (~20 s/tok), not tokens per second. What that means in practice:
- Use it for work you don't watch: an overnight task (
ccode -p "…"), orccode benchto see how a big model does. A task with AirLLM may run for up to 12 hours (change it with--max-seconds). For coding live, a model that fits your GPU is far better. - Disk: the model's download, plus AirLLM's own compressed copy, split by layer, next to it (
.airllmin the models folder). The first start makes that copy, which can take an hour for a very large model. - Speed is set by your disk. When the compressed copy fits in your computer's memory, it is several times faster.
- Tool calls are written as text, which CrowdCode™ reads. This happens by itself.
To use it, pick the model in ccode models, or name it: ccode models use meta-llama/Llama-3.3-70B-Instruct --engine airllm.
Some models are gated: accept their license on huggingface.co first, then set your token in the environment as HF_TOKEN. CrowdCode™ never stores it.
Downloads go through Enclawed™ like everything else. If your policy lists the computers CrowdCode™ may reach, CrowdCode™ asks before adding Hugging Face to it.
Images, audio and video
Setup also offers a second model that can see pictures and hear audio, for pasted screenshots, photos, voice notes and videos. Qwen2.5-Omni-7B is a good choice. It can run in the same three ways.
Which computers CrowdCode™ may reach
When a model runs on another computer, setup asks whether to allow it. Enclawed™ decides which computers CrowdCode™ may connect to, from the list setup writes into Enclawed™'s policy. Once a list exists:
- CrowdCode™ can reach only the computers on it (and this one);
- the agent's own downloads, such as package installs or
git fetch, are limited to the list too. Setup offers to add the usual code and package hosts (npm, PyPI, GitHub, crates.io, Go modules).
An organization can also set a policy for every user in /etc/enclawed/policy.json. A person's own settings can only make it stricter, never looser.
The files setup writes
| File | What it holds |
|---|---|
~/.config/crowdcode/config.json | Your model servers |
~/.config/crowdcode/policy.json | Enclawed™'s policy: the computers CrowdCode™ may reach |
On Windows they live in %APPDATA%\crowdcode.