-
Notifications
You must be signed in to change notification settings - Fork 0
AI Providers
Sasha Baranov edited this page Jun 12, 2026
·
1 revision
Aicraft uses the OpenAI chat completions format: POST /v1/chat/completions with a JSON body containing model and messages.
On the same machine as Minecraft:
ollama pull llama3.2
ollama serveendpoint: "http://localhost:11434/v1/chat/completions"
api-key: "ollama"
model: "llama3.2"If Ollama runs on another machine, replace localhost with that host's IP.
endpoint: "https://api.openai.com/v1/chat/completions"
api-key: "sk-your-key-here"
model: "gpt-4o-mini"Any service exposing /v1/chat/completions works, including:
- Unsloth
- vLLM
- LM Studio
- Groq
- OpenRouter
Set endpoint to the full completions URL, api-key to your key (or a placeholder if unused), and model to the provider's model name.
If the AI server runs in Docker and Minecraft runs on the host, localhost from the Minecraft server's perspective may not reach the container. Use the container's published IP/port or host.docker.internal where applicable.