- Unity
2022.3.62f3c1or another compatible Unity 2022.3 LTS editor. - Git.
- Optional: Ollama for local LLM responses.
git clone https://github.com/<owner>/OPEN-AVATAR.git
cd OPEN-AVATAROpen the folder with Unity Hub, then open:
Assets/00_Scenes/AvatarAgent_DemoScene.unity
Press Play to run the scene.
Set AvatarAgentController > LLM > Provider Mode to Mock. This mode does not
need network access or API keys.
Install Ollama, start the service, and pull a lightweight model:
ollama pull qwen2.5:3bIn Unity, set:
Provider Mode: Ollama
Ollama Endpoint: http://127.0.0.1:11434/api/generate
Ollama Model: qwen2.5:3b
Auto Resolve: true
When auto-resolve is enabled, OpenAvatar checks local Ollama models and can fall back to another installed model if the configured one is unavailable.
Set:
Provider Mode: CustomJsonApi
Custom Endpoint: http://127.0.0.1:8000/agent-response
API Key: optional bearer token
See docs/API_CONTRACT.md for the request and response format.
To rebuild the demo Animator Controller inside Unity:
Tools/OpenAvatar/Rebuild Avatar Animator Controller
The utility generates Assets/09_Animations/AvatarAnimatorController.controller
and tries to bind it to the demo avatar prefab.