nerdit.toml. Nerdit resolves them at launch and injects endpoint, key, and model variables. External bindings send application requests to the configured provider; they do not keep those requests on your machine.
Serve a local model
Ollama supports CPU or GPU serving. Choose a model that fits available RAM or VRAM and allow time and disk space for its initial download:nerdit diagnose SERVICE_NAME and nerdit logs SERVICE_NAME. The model must be running and ready before the application can use it.
nerdit.toml
ollama binding provider selects a locally managed model; the serving backend itself can be Ollama or vLLM.
Use vLLM
vLLM requires a GPU. Models use Hugging Face references:HF_TOKEN secret. Shared secrets require admin access. Keep it out of the model reference and command arguments.
Connect an external API
nerdit.toml
AI_API_KEY using the secret store. This path requires neither a local model container nor a GPU. Nerdit injects the endpoint; it does not add a separate local gateway in front of the external provider.
Read bindings in the application
Names become uppercase in environment variables. For a Python application with the OpenAI SDK installed:
Troubleshoot and remove models
If a binding fails, check the exact model reference, readiness, container logs, and bridge connectivity. Container clients cannot reach a host service just because it listens on host loopback;[models].bridge_host controls the shared container-to-resource reachability configuration.
Manage the returned model service with nerdit services stop, restart, or rm. Removing a model used by running applications is refused unless forced. Update dependent bindings first. Model weights are outside control-plane backups and need separate preservation if re-downloading is unacceptable.