You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Trust Gate reviews thoughts before promotion using an LLM via [OpenRouter](https://openrouter.ai/).
25
+
The Trust Gate reviews thoughts before promotion using an LLM. By default, FAVA Trails uses [OpenRouter](https://openrouter.ai/) for unified access to 100+ models.
26
+
27
+
**OpenRouter (default, recommended):**
26
28
27
29
1. Create a free account at https://openrouter.ai/
28
30
2. Generate an API key at https://openrouter.ai/keys
@@ -31,6 +33,8 @@ The Trust Gate reviews thoughts before promotion using an LLM via [OpenRouter](h
31
33
32
34
The default model (`google/gemini-2.5-flash`) costs ~$0.001 per review.
33
35
36
+
**Other providers:** FAVA Trails uses [any-llm-sdk](https://github.com/marekstephens/any-llm-sdk) for unified LLM access, enabling support for additional providers (Anthropic, OpenAI, Bedrock, etc.). Configuration for provider selection will be available in future versions via `config.yaml`.
37
+
34
38
## Creating the Data Repo
35
39
36
40
The data repo is a plain git repository that the MCP server JJ-colocates on first use. It holds your organization's trail data — separate from the engine.
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ For Claude Desktop on Windows (accessing WSL):
120
120
}
121
121
```
122
122
123
-
> The Trust Gate uses [OpenRouter](https://openrouter.ai/) to review thoughts before promotion. Get a free API key at [openrouter.ai/keys](https://openrouter.ai/keys). The default model (`google/gemini-2.5-flash`) costs ~$0.001 per review.
123
+
> **The Trust Gate uses LLM verification:** Thoughts are reviewed before promotion to ensure they're coherent and safe. By default, FAVA Trails uses [OpenRouter](https://openrouter.ai/) to access 100+ models from Anthropic, OpenAI, Google, Qwen, and others. Get a free API key at [openrouter.ai/keys](https://openrouter.ai/keys). The default model (`google/gemini-2.5-flash`) costs ~$0.001 per review. Multi-provider support via [any-llm-sdk](https://github.com/marekstephens/any-llm-sdk) enables switching to other providers by modifying `config.yaml`.
124
124
125
125
### Use it
126
126
@@ -201,7 +201,9 @@ Environment variables:
201
201
|`FAVA_TRAILS_DIR`| Server | Override trails directory location (absolute path) |`$FAVA_TRAILS_DATA_REPO/trails`|
202
202
|`FAVA_TRAILS_SCOPE_HINT`| Server | Broad scope hint baked into tool descriptions |*(none)*|
203
203
|`FAVA_TRAILS_SCOPE`| Agent | Project-specific scope from `.env` file |*(none)*|
204
-
|`OPENROUTER_API_KEY`| Server | API key for Trust Gate LLM reviews ([get one](https://openrouter.ai/keys)) |*(none — required for `propose_truth`)*|
204
+
|`OPENROUTER_API_KEY`| Server | API key for Trust Gate LLM reviews via [OpenRouter](https://openrouter.ai/keys)|*(none — required for `propose_truth`)*|
205
+
206
+
**LLM Provider:** FAVA Trails uses [any-llm-sdk](https://github.com/marekstephens/any-llm-sdk) for unified LLM access. OpenRouter is the default provider (recommended for simplicity — single API key, 100+ models). Additional providers (Anthropic, OpenAI, Bedrock, etc.) can be configured in `config.yaml` for future versions.
205
207
206
208
The server reads `$FAVA_TRAILS_DATA_REPO/config.yaml` for global settings. Minimal `config.yaml`:
`GlobalConfig` has a single `openrouter_api_key_env` field (default: `"OPENROUTER_API_KEY"`).
64
+
`GlobalConfig` has a single `openrouter_api_key_env` field (default: `"OPENROUTER_API_KEY"`) for OpenRouter API key configuration.
65
+
66
+
**Future extensibility:** To support additional LLM providers, a `llm_provider` field and provider-specific configuration will be added to `GlobalConfig`. This will enable runtime provider selection via `config.yaml` while maintaining backward compatibility with existing OpenRouter setups.
67
+
61
68
The previous `openai_api_key_env` field was removed in Spec 17.
0 commit comments