1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# gloc — default configuration
#
# Auto-detect local LLM backends and launch AI CLI tools.
#
# Config layers (first found wins, no merging):
# 1. --config PATH (explicit override)
# 2. .gobby/gloc.yaml (project)
# 3. ~/.gobby/gloc.yaml (global)
# 4. built-in defaults (this file)
settings:
probe_timeout_ms: 500
auto_load: true # load model into backend before exec
auto_pull: false # (ollama) pull model if not downloaded
# Backends — probed in order, first responding wins.
# Rearrange to change priority.
backends:
- name: lmstudio
url: "http://localhost:1234"
probe: "/v1/models"
auth_token: "lmstudio"
- name: ollama
url: "http://localhost:11434"
probe: "/api/tags"
auth_token: "ollama"
# Clients — the AI CLI tool to exec into.
# First alphabetically is the default (claude < codex).
clients:
claude:
binary: "claude"
env:
ANTHROPIC_BASE_URL: "{backend.url}"
ANTHROPIC_AUTH_TOKEN: "{backend.auth_token}"
ANTHROPIC_API_KEY: ""
model_flag: "--model"
default_model: "qwen3-coder"
default_args:
default_env:
codex:
binary: "codex"
env:
OPENAI_BASE_URL: "{backend.url}/v1"
OPENAI_API_KEY: "{backend.auth_token}"
model_flag: "--model"
default_model: "qwen3-coder"
default_args:
default_env:
# Shorthand aliases (resolved before passing to backend)
aliases:
qwen: "qwen3-coder"
glm: "glm-4.7:cloud"