euron-code 1.5.0__tar.gz → 1.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. {euron_code-1.5.0 → euron_code-1.5.1}/CHANGELOG.md +19 -12
  2. {euron_code-1.5.0 → euron_code-1.5.1}/PKG-INFO +25 -22
  3. {euron_code-1.5.0 → euron_code-1.5.1}/README.md +24 -21
  4. {euron_code-1.5.0 → euron_code-1.5.1}/pyproject.toml +1 -1
  5. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/__init__.py +1 -1
  6. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/agent.py +13 -7
  7. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/cli.py +14 -11
  8. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/llm/__init__.py +39 -9
  9. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/llm/setup.py +4 -2
  10. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/prompts.py +1 -1
  11. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/repl.py +13 -8
  12. {euron_code-1.5.0 → euron_code-1.5.1}/tests/mock_gateway.py +8 -0
  13. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v15_hosted_models.py +82 -6
  14. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v5.py +5 -3
  15. {euron_code-1.5.0 → euron_code-1.5.1}/.gitignore +0 -0
  16. {euron_code-1.5.0 → euron_code-1.5.1}/LICENSE +0 -0
  17. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/__main__.py +0 -0
  18. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/activity.py +0 -0
  19. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/api.py +0 -0
  20. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/attachments.py +0 -0
  21. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/auth.py +0 -0
  22. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/builtin_skills/build-from-reference/SKILL.md +0 -0
  23. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/builtin_skills/explain-codebase/SKILL.md +0 -0
  24. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/builtin_skills/review/SKILL.md +0 -0
  25. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/builtin_skills/test-writer/SKILL.md +0 -0
  26. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/cache.py +0 -0
  27. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/checkpoints.py +0 -0
  28. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/config.py +0 -0
  29. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/context.py +0 -0
  30. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/contextforge/LICENSE +0 -0
  31. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/contextforge/__init__.py +0 -0
  32. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/contextforge/text.py +0 -0
  33. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/contextforge/toolout.py +0 -0
  34. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/credentials.py +0 -0
  35. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/doctor.py +0 -0
  36. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/documents.py +0 -0
  37. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/error_hints.py +0 -0
  38. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/errorlog.py +0 -0
  39. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/frontmatter.py +0 -0
  40. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/hooks.py +0 -0
  41. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/keys.py +0 -0
  42. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/knowledge.py +0 -0
  43. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/licensing.py +0 -0
  44. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/llm/anthropic.py +0 -0
  45. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/llm/base.py +0 -0
  46. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/llm/openai_compat.py +0 -0
  47. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/logo.py +0 -0
  48. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/markdown_view.py +0 -0
  49. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/memory.py +0 -0
  50. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/osscache.py +0 -0
  51. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/ossgithub.py +0 -0
  52. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/pathfix.py +0 -0
  53. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/permissions.py +0 -0
  54. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/progress.py +0 -0
  55. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/project_setup.py +0 -0
  56. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/repomap.py +0 -0
  57. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/rules.py +0 -0
  58. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/security_scan.py +0 -0
  59. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/sessions.py +0 -0
  60. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/skills.py +0 -0
  61. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/textsafe.py +0 -0
  62. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/__init__.py +0 -0
  63. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/background.py +0 -0
  64. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/base.py +0 -0
  65. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/db.py +0 -0
  66. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/document.py +0 -0
  67. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/erie.py +0 -0
  68. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/fs.py +0 -0
  69. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/ignore.py +0 -0
  70. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/normalize.py +0 -0
  71. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/oss.py +0 -0
  72. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/pathfind.py +0 -0
  73. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/reuse.py +0 -0
  74. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/search.py +0 -0
  75. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/shell.py +0 -0
  76. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/skill.py +0 -0
  77. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/symbols.py +0 -0
  78. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/task.py +0 -0
  79. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/todo.py +0 -0
  80. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/tools/web.py +0 -0
  81. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/transcript.py +0 -0
  82. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/trust.py +0 -0
  83. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/ui.py +0 -0
  84. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/update_check.py +0 -0
  85. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/usage_view.py +0 -0
  86. {euron_code-1.5.0 → euron_code-1.5.1}/src/euron_code/version_info.py +0 -0
  87. {euron_code-1.5.0 → euron_code-1.5.1}/tests/conftest.py +0 -0
  88. {euron_code-1.5.0 → euron_code-1.5.1}/tests/fake_providers.py +0 -0
  89. {euron_code-1.5.0 → euron_code-1.5.1}/tests/helpers.py +0 -0
  90. {euron_code-1.5.0 → euron_code-1.5.1}/tests/measure_floor.py +0 -0
  91. {euron_code-1.5.0 → euron_code-1.5.1}/tests/serve_helper.py +0 -0
  92. {euron_code-1.5.0 → euron_code-1.5.1}/tests/sim_long_session.py +0 -0
  93. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_agent_mock.py +0 -0
  94. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_api_shell.py +0 -0
  95. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_bench.py +0 -0
  96. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_bench_harness.py +0 -0
  97. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_cli_e2e.py +0 -0
  98. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_context_memory_sessions.py +0 -0
  99. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_dashboard_fixes.py +0 -0
  100. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_dashboard_fixes_102.py +0 -0
  101. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_db.py +0 -0
  102. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_erie.py +0 -0
  103. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_knowledge_security.py +0 -0
  104. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_markdown_view.py +0 -0
  105. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_oss_local.py +0 -0
  106. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_permissions.py +0 -0
  107. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_powershell_exit_codes.py +0 -0
  108. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_qa_attach_secrets.py +0 -0
  109. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_qa_long_task.py +0 -0
  110. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_qa_print_output.py +0 -0
  111. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_qa_reuse_unrelated.py +0 -0
  112. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_qa_yolo_outside.py +0 -0
  113. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_repl.py +0 -0
  114. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_reuse_honesty.py +0 -0
  115. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_search.py +0 -0
  116. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_textsafe.py +0 -0
  117. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_tools_fs.py +0 -0
  118. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_transcript_ui.py +0 -0
  119. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_update_check.py +0 -0
  120. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v111_user_reports.py +0 -0
  121. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v113_fix_path.py +0 -0
  122. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v11_byo.py +0 -0
  123. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v11_speed.py +0 -0
  124. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v11_tool_fixes.py +0 -0
  125. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v130_cut_writes.py +0 -0
  126. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v130_reliability.py +0 -0
  127. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v140_parity.py +0 -0
  128. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v15_reuse_off_subagent_hooks.py +0 -0
  129. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v2_rules_skills_hooks.py +0 -0
  130. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v2_tokens_shortcuts.py +0 -0
  131. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v2_usage_headers.py +0 -0
  132. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v31_security.py +0 -0
  133. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v3_accounts_value_setup.py +0 -0
  134. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v3_activity.py +0 -0
  135. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v3_attachments.py +0 -0
  136. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v3_context.py +0 -0
  137. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v3_live_repl.py +0 -0
  138. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v3_single_login.py +0 -0
  139. {euron_code-1.5.0 → euron_code-1.5.1}/tests/test_v4.py +0 -0
@@ -1,19 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.1 (2026-11-10)
4
+
5
+ Default is the Euron model on Euron's own GPUs; bring your own Anthropic/OpenAI/any key, billed by your provider.
6
+
7
+ - The default, and the only model Euron runs for you, is the Euron model: Euron's own model on Euron's own GPUs,
8
+ included with Euron Plus and Super 30. Your prompts and code go to Euron's own servers.
9
+ - Want Claude, GPT or another model? `euron models add anthropic` (or `openai`, `openrouter`, `custom` for any
10
+ OpenAI-compatible endpoint), or `euron --model provider:model`, or `/model add` in a session. It uses your key,
11
+ your provider bills you, and Euron charges nothing for it.
12
+ - `/model` and `euron models` list the Euron model first, as the default; your own models are marked as using your
13
+ key and billed by your provider.
14
+ - Asked which model it is, Euron Code on the Euron model says it runs on the Euron model and never claims another
15
+ company's model. With your own model it names that model.
16
+ - The 1.5.0 notes below described hosted provider models as the default. Those were never switched on and are not
17
+ offered.
18
+
3
19
  ## 1.5.0 (2026-11-10)
4
20
 
5
- Three Euron models, and the default is now a hosted model.
6
-
7
- - Euron default is Claude Sonnet 5.5 (Anthropic), run by Euron. In our benchmark of student-style tasks it
8
- passed 25 of 25 at a median of 13.7 s per task, and 3 of 3 SWE-bench Verified tasks. Euron fast is GPT-6 Luna (OpenAI): quicker and lighter.
9
- Euron open is the model Euron Code used until now, run on Euron's own servers. Pick with `/model` (arrow keys),
10
- `/model fast`, `/model open`, `/model default`, or `euron models use fast`. Your own models work as before.
11
- - Euron's provider keys stay on Euron's servers: Euron Code still talks only to Euron with your Euron key. Your
12
- code and prompts for a hosted model are processed by that model's provider (Anthropic or OpenAI).
13
- - The status line and `/model` name the real model, and Euron Code answers honestly when you ask which model it
14
- is, including after a switch.
15
- - Hosted models have a daily allowance per account. When it is used up, Euron Code tells you once and
16
- continues on Euron open until midnight IST; nothing stops. Your usual token allowance still applies.
21
+ - The status line and `/model` say which model answers, and Euron Code answers honestly when you ask which model
22
+ it is, including after a switch.
23
+ - Notes from Euron about the model that answered are shown once per kind.
17
24
  - With `reuse.enabled` set to false, every open-source and Euron reuse tool is off, and no GitHub repository is
18
25
  downloaded.
19
26
  - Read-only and parallel sub-agents run your hooks (PreToolUse, PostToolUse) and permission rules, like the main
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: euron-code
3
- Version: 1.5.0
3
+ Version: 1.5.1
4
4
  Summary: Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students.
5
5
  Project-URL: Homepage, https://euron.one/code-agent
6
6
  Author-email: Euron <contact@euron.one>
@@ -190,34 +190,28 @@ https://euron.one/code-agent/usage.
190
190
 
191
191
  ## Euron models
192
192
 
193
- Euron Plus and Super 30 include three Euron models. Euron runs them; you only need your Euron login.
193
+ Euron Code's default is the **Euron model**: Euron's own model, run by Euron on Euron's own GPUs. It is
194
+ included with Euron Plus and Super 30; you only need your Euron login. Your prompts and the code Euron Code
195
+ sends go to Euron's own servers and nowhere else. Your daily token allowance applies to it.
194
196
 
195
- | Model | What it is | Pick it with |
196
- | --- | --- | --- |
197
- | Euron default | Claude Sonnet 5.5 by Anthropic. The strongest choice for real coding work. | `/model default` |
198
- | Euron fast | GPT-6 Luna by OpenAI. Quick and light, good for small tasks. | `/model fast` |
199
- | Euron open | An open model that Euron runs on its own servers. | `/model open` |
200
-
201
- `euron models` lists them; `euron models use fast` makes one your default. Euron's provider keys stay on Euron's
202
- servers. When you use Euron default or Euron fast, your prompts and the code Euron Code sends are processed by
203
- that model's provider (Anthropic or OpenAI). Euron open keeps everything on Euron's own servers.
204
-
205
- Euron default and Euron fast have a daily allowance per account. When it is used up, Euron Code says so once and
206
- continues on Euron open until midnight IST. Your daily token allowance applies to every Euron model.
197
+ If you would rather use Claude, GPT or any other model, bring your own key (next section). That model is
198
+ billed by its provider, on your account, not by Euron.
207
199
 
208
200
  ## Use your own model
209
201
 
210
202
  > Available from **Euron Code 1.1.0**. Check yours with `euron version` (or `euron --version`, or `/version`
211
203
  > inside a session) and update with `pip install -U euron-code`.
212
204
 
213
- The Euron model is included with Euron Plus and Super 30. Any signed-in Euron account can also connect its
214
- own model: OpenAI, Claude (Anthropic), Ollama on your computer, Google Gemini, OpenRouter, Groq, or any
215
- OpenAI-compatible endpoint (LM Studio, Together, the EURI API, your own server). Everything else works the
205
+ The Euron model is the default and is included with Euron Plus and Super 30. Any signed-in Euron account can
206
+ also use its own model with its own API key: OpenAI, Claude (Anthropic), OpenRouter, Google Gemini, Groq,
207
+ Ollama on your computer, or any OpenAI-compatible endpoint (LM Studio, Together, the EURI API, your own
208
+ server). Everything else works the
216
209
  same: tools, plan mode, permissions, hooks, rewind and automatic context management.
217
210
 
218
211
  Your API key stays on your computer (system keychain, or `~/.euron/credentials.json` readable only by you),
219
- is sent only to that provider, and is never printed, logged or sent to Euron. Your own model is billed by
220
- its provider and does not use your Euron tokens.
212
+ is sent only to that provider, and is never printed, logged or sent to Euron. With your own model, your
213
+ prompts and code go to that provider, it bills you for them, and Euron pays nothing and charges nothing. It
214
+ does not use your Euron tokens.
221
215
 
222
216
  The quickest way is the guided setup. It asks for the provider, the key (hidden as you type), and the model,
223
217
  then checks that the model answers and can call tools:
@@ -237,6 +231,8 @@ euron --model openai:<model-id> # or use a model id directly for o
237
231
  **Claude (Anthropic)**
238
232
 
239
233
  ```bash
234
+ euron models add anthropic # asks for the key (hidden), lists your models, checks one answers
235
+ # or, with the key in the environment:
240
236
  export ANTHROPIC_API_KEY=sk-ant-... # PowerShell: $env:ANTHROPIC_API_KEY = "sk-ant-..."
241
237
  euron --model anthropic:claude-sonnet-5-5
242
238
  ```
@@ -255,6 +251,13 @@ euron --model ollama:llama3.1
255
251
  Pick a local model that supports tool calling. Ollama on another machine: `euron models add ollama` and
256
252
  give its address (or set `OLLAMA_HOST`).
257
253
 
254
+ **OpenRouter (hundreds of models with one key)**
255
+
256
+ ```bash
257
+ euron models add openrouter # or: export OPENROUTER_API_KEY=sk-or-...
258
+ euron --model openrouter:<vendor>/<model-id> # e.g. the id shown on openrouter.ai/models
259
+ ```
260
+
258
261
  **Any OpenAI-compatible endpoint**
259
262
 
260
263
  ```bash
@@ -270,13 +273,13 @@ Built-in names that only need their key in the environment: `gemini` (`GEMINI_AP
270
273
 
271
274
  | Where | Command |
272
275
  |---|---|
273
- | in a session | `/model` (pick with the arrow keys), `/model fast`, `/model open`, `/model default`, `/model <provider:model>`, `/model remove <provider>` |
276
+ | in a session | `/model` (pick with the arrow keys), `/model euron` (back to the Euron model), `/model add`, `/model <provider:model>`, `/model remove <provider>` |
274
277
  | default for every run | `euron models use <provider:model>`, back with `euron models use euron` |
275
278
  | one run | `euron --model <provider:model>` (also with `-p`) |
276
279
  | see what is set up | `euron models` |
277
280
 
278
- The conversation is kept when you switch. The status line shows which model answers: the Euron model's name
279
- (for example "Euron default (Claude Sonnet 5.5)"), or your own model's name. Your own model's context window is taken from its known size (or the `contextWindow` you
281
+ The conversation is kept when you switch. The status line shows which model answers: "Euron model", or your
282
+ own model's name; asked which model it is, Euron Code says the same. Your own model's context window is taken from its known size (or the `contextWindow` you
280
283
  gave in `euron models add`), up to `byoMaxContext` (128,000 tokens by default, because every step resends the
281
284
  conversation on your bill). A model that cannot call tools is refused with a clear message.
282
285
 
@@ -124,34 +124,28 @@ https://euron.one/code-agent/usage.
124
124
 
125
125
  ## Euron models
126
126
 
127
- Euron Plus and Super 30 include three Euron models. Euron runs them; you only need your Euron login.
127
+ Euron Code's default is the **Euron model**: Euron's own model, run by Euron on Euron's own GPUs. It is
128
+ included with Euron Plus and Super 30; you only need your Euron login. Your prompts and the code Euron Code
129
+ sends go to Euron's own servers and nowhere else. Your daily token allowance applies to it.
128
130
 
129
- | Model | What it is | Pick it with |
130
- | --- | --- | --- |
131
- | Euron default | Claude Sonnet 5.5 by Anthropic. The strongest choice for real coding work. | `/model default` |
132
- | Euron fast | GPT-6 Luna by OpenAI. Quick and light, good for small tasks. | `/model fast` |
133
- | Euron open | An open model that Euron runs on its own servers. | `/model open` |
134
-
135
- `euron models` lists them; `euron models use fast` makes one your default. Euron's provider keys stay on Euron's
136
- servers. When you use Euron default or Euron fast, your prompts and the code Euron Code sends are processed by
137
- that model's provider (Anthropic or OpenAI). Euron open keeps everything on Euron's own servers.
138
-
139
- Euron default and Euron fast have a daily allowance per account. When it is used up, Euron Code says so once and
140
- continues on Euron open until midnight IST. Your daily token allowance applies to every Euron model.
131
+ If you would rather use Claude, GPT or any other model, bring your own key (next section). That model is
132
+ billed by its provider, on your account, not by Euron.
141
133
 
142
134
  ## Use your own model
143
135
 
144
136
  > Available from **Euron Code 1.1.0**. Check yours with `euron version` (or `euron --version`, or `/version`
145
137
  > inside a session) and update with `pip install -U euron-code`.
146
138
 
147
- The Euron model is included with Euron Plus and Super 30. Any signed-in Euron account can also connect its
148
- own model: OpenAI, Claude (Anthropic), Ollama on your computer, Google Gemini, OpenRouter, Groq, or any
149
- OpenAI-compatible endpoint (LM Studio, Together, the EURI API, your own server). Everything else works the
139
+ The Euron model is the default and is included with Euron Plus and Super 30. Any signed-in Euron account can
140
+ also use its own model with its own API key: OpenAI, Claude (Anthropic), OpenRouter, Google Gemini, Groq,
141
+ Ollama on your computer, or any OpenAI-compatible endpoint (LM Studio, Together, the EURI API, your own
142
+ server). Everything else works the
150
143
  same: tools, plan mode, permissions, hooks, rewind and automatic context management.
151
144
 
152
145
  Your API key stays on your computer (system keychain, or `~/.euron/credentials.json` readable only by you),
153
- is sent only to that provider, and is never printed, logged or sent to Euron. Your own model is billed by
154
- its provider and does not use your Euron tokens.
146
+ is sent only to that provider, and is never printed, logged or sent to Euron. With your own model, your
147
+ prompts and code go to that provider, it bills you for them, and Euron pays nothing and charges nothing. It
148
+ does not use your Euron tokens.
155
149
 
156
150
  The quickest way is the guided setup. It asks for the provider, the key (hidden as you type), and the model,
157
151
  then checks that the model answers and can call tools:
@@ -171,6 +165,8 @@ euron --model openai:<model-id> # or use a model id directly for o
171
165
  **Claude (Anthropic)**
172
166
 
173
167
  ```bash
168
+ euron models add anthropic # asks for the key (hidden), lists your models, checks one answers
169
+ # or, with the key in the environment:
174
170
  export ANTHROPIC_API_KEY=sk-ant-... # PowerShell: $env:ANTHROPIC_API_KEY = "sk-ant-..."
175
171
  euron --model anthropic:claude-sonnet-5-5
176
172
  ```
@@ -189,6 +185,13 @@ euron --model ollama:llama3.1
189
185
  Pick a local model that supports tool calling. Ollama on another machine: `euron models add ollama` and
190
186
  give its address (or set `OLLAMA_HOST`).
191
187
 
188
+ **OpenRouter (hundreds of models with one key)**
189
+
190
+ ```bash
191
+ euron models add openrouter # or: export OPENROUTER_API_KEY=sk-or-...
192
+ euron --model openrouter:<vendor>/<model-id> # e.g. the id shown on openrouter.ai/models
193
+ ```
194
+
192
195
  **Any OpenAI-compatible endpoint**
193
196
 
194
197
  ```bash
@@ -204,13 +207,13 @@ Built-in names that only need their key in the environment: `gemini` (`GEMINI_AP
204
207
 
205
208
  | Where | Command |
206
209
  |---|---|
207
- | in a session | `/model` (pick with the arrow keys), `/model fast`, `/model open`, `/model default`, `/model <provider:model>`, `/model remove <provider>` |
210
+ | in a session | `/model` (pick with the arrow keys), `/model euron` (back to the Euron model), `/model add`, `/model <provider:model>`, `/model remove <provider>` |
208
211
  | default for every run | `euron models use <provider:model>`, back with `euron models use euron` |
209
212
  | one run | `euron --model <provider:model>` (also with `-p`) |
210
213
  | see what is set up | `euron models` |
211
214
 
212
- The conversation is kept when you switch. The status line shows which model answers: the Euron model's name
213
- (for example "Euron default (Claude Sonnet 5.5)"), or your own model's name. Your own model's context window is taken from its known size (or the `contextWindow` you
215
+ The conversation is kept when you switch. The status line shows which model answers: "Euron model", or your
216
+ own model's name; asked which model it is, Euron Code says the same. Your own model's context window is taken from its known size (or the `contextWindow` you
214
217
  gave in `euron models add`), up to `byoMaxContext` (128,000 tokens by default, because every step resends the
215
218
  conversation on your bill). A model that cannot call tools is refused with a clear message.
216
219
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "euron-code"
7
- version = "1.5.0"
7
+ version = "1.5.1"
8
8
  description = "Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,3 +1,3 @@
1
1
  """Euron Code: an agentic coding assistant for the terminal."""
2
2
 
3
- __version__ = "1.5.0"
3
+ __version__ = "1.5.1"
@@ -210,7 +210,7 @@ class Agent:
210
210
  self.tokens = context.TokenTracker()
211
211
  self.cancel = threading.Event()
212
212
  self.pending_note: Optional[str] = None
213
- self._notices_shown: set = set() # gateway notices (hosted budget / fallback) already shown
213
+ self._notices_shown: set = set() # gateway notices already shown
214
214
  self.pending_context: List[str] = [] # hook output, `!` commands: added to the next prompt
215
215
  self.pending_images: List[Dict[str, Any]] = [] # image_url parts for the next prompt
216
216
  self.pending_image_paths: List[Path] = [] # their local files (a photo may belong on the page)
@@ -286,11 +286,17 @@ class Agent:
286
286
 
287
287
  @property
288
288
  def model_label(self) -> str:
289
- """What the user sees: the Euron model's label (it names the real model), or the third-party model's
290
- real name."""
289
+ """What the user sees: "Euron model", or the user's own model's real name."""
291
290
  from euron_code import llm as _llm
292
291
  return _llm.euron_label(self.model) if self.uses_euron else str(getattr(self.llm, "label", None) or self.model)
293
292
 
293
+ @property
294
+ def model_identity(self) -> str:
295
+ """Who answers, as the model is told (prompts.CORE): the Euron model never takes a vendor's name; the
296
+ user's own model is named as it is."""
297
+ from euron_code import llm as _llm
298
+ return _llm.identity(self.model, self.uses_euron, str(getattr(self.llm, "label", None) or ""))
299
+
294
300
  def set_model(self, model: str, backend, window: Optional[int] = None, max_output: Optional[int] = None) -> None:
295
301
  """Switch who answers (the next model call uses it). The conversation is kept: it is stored in one
296
302
  neutral format and converted per provider."""
@@ -300,7 +306,7 @@ class Agent:
300
306
  self.model = model
301
307
  if changed and len(self.messages) > 1 and not self.is_subagent:
302
308
  # honest identity: the next message tells the model who is answering from now on
303
- self.pending_note = f"[Euron Code: from now on the model answering is {self.model_label}.]"
309
+ self.pending_note = f"[Euron Code: from now on the model answering is {self.model_identity}.]"
304
310
  if window:
305
311
  self.window = int(window)
306
312
  self.settings["contextWindow"] = int(window)
@@ -520,7 +526,7 @@ class Agent:
520
526
  text = self.pending_note + "\n\n" + text
521
527
  self.pending_note = None
522
528
  if len(self.messages) == 1 and not self.is_subagent:
523
- text = prompts.dynamic_context(self.root, _branch(self.root), self.model_label) + "\n\n" + text
529
+ text = prompts.dynamic_context(self.root, _branch(self.root), self.model_identity) + "\n\n" + text
524
530
  # volatile additions go at the END of the message, so everything before stays cacheable
525
531
  if self.pending_context:
526
532
  text += "\n\n" + "\n\n".join(self.pending_context)
@@ -996,8 +1002,8 @@ class Agent:
996
1002
  return cut
997
1003
 
998
1004
  def _gateway_note(self, info: Dict[str, Any]) -> None:
999
- """A note from the Euron gateway on a stream chunk, e.g. the hosted model's daily allowance is used up
1000
- and this step ran on the Euron open model. Shown once per kind per session."""
1005
+ """A note from the Euron gateway on a stream chunk (for example a step ran on the Euron model instead
1006
+ of the one asked for). Shown once per kind per session."""
1001
1007
  notice = info.get("notice") if isinstance(info.get("notice"), dict) else None
1002
1008
  if not notice:
1003
1009
  return
@@ -64,9 +64,10 @@ def main_parser() -> argparse.ArgumentParser:
64
64
  p.add_argument("--output-format", choices=["text", "json"], default="text", help="With -p: text or json.")
65
65
  p.add_argument("--max-turns", type=_positive_int, default=None, help="Maximum model steps for this run.")
66
66
  p.add_argument("--model", default=None,
67
- help="Who answers: euron (the Euron model, the default) or your own model as provider:model, "
68
- "e.g. openai:<model>, anthropic:<model>, ollama:<model>, or a custom endpoint added with "
69
- "`euron models add`.")
67
+ help="Who answers: euron (the Euron model on Euron's own GPUs, the default) or your own model "
68
+ "as provider:model, e.g. openai:<model>, anthropic:<model>, openrouter:<model>, "
69
+ "ollama:<model>, or a custom endpoint added with `euron models add` (your key, billed by "
70
+ "your provider).")
70
71
  p.add_argument("-c", "--continue", dest="cont", action="store_true", help="Continue the latest session in this folder.")
71
72
  p.add_argument("-r", "--resume", nargs="?", const="", default=None, metavar="ID",
72
73
  help="Resume a session (pick from a list, or give an id).")
@@ -310,10 +311,10 @@ def run_models(ui, args) -> int:
310
311
  rows = setup.describe()
311
312
  current = config.load_user_settings().get("model")
312
313
  gw: list = []
313
- try: # the Euron models (labels name the real model); offline or logged out: one generic row
314
+ try: # the Euron models from the gateway; offline or logged out: one generic row
314
315
  client = _need_client(ui)
315
316
  try:
316
- gw = [m for m in client.models() if m.get("display_name")]
317
+ gw = llm.sort_euron_models([m for m in client.models() if m.get("display_name")])
317
318
  finally:
318
319
  client.close()
319
320
  llm.remember_euron_models(gw)
@@ -321,7 +322,7 @@ def run_models(ui, args) -> int:
321
322
  gw = []
322
323
  if args.json:
323
324
  print(json.dumps({"default": llm.display_name(current), "euron": [
324
- {"model": "euron:" + str(m["id"]), "label": m.get("display_name"), "kind": m.get("kind"),
325
+ {"model": "euron:" + str(m["id"]), "label": llm.euron_label(str(m["id"])), "kind": m.get("kind"),
325
326
  "accountDefault": bool(m.get("is_default"))} for m in gw],
326
327
  "models": [{"model": r, "note": n} for r, n in rows]}, indent=2))
327
328
  return EXIT_OK
@@ -331,17 +332,19 @@ def run_models(ui, args) -> int:
331
332
  for m in gw:
332
333
  mid = str(m["id"])
333
334
  on = cur_ref.is_euron and (cur_ref.model == mid or (not cur_ref.model and m.get("is_default")))
334
- ui.plain(f" {'*' if on else ' '} euron:{mid} {m['display_name']}"
335
- + (" (account default)" if m.get("is_default") else ""))
336
- ui.dim("Euron models need Euron Plus / Super 30. Shortcuts: euron:default, euron:fast, euron:open.")
335
+ ui.plain(f" {'*' if on else ' '} euron:{mid} {llm.euron_label(mid)}"
336
+ + (", on Euron's own GPUs" if m.get("kind", "open") == "open" else "")
337
+ + (" (default)" if m.get("is_default") else ""))
338
+ ui.dim("The Euron model is included with Euron Plus / Super 30.")
337
339
  else:
338
340
  mark = "*" if llm.is_euron(current) else " "
339
- ui.plain(f" {mark} euron {llm.EURON_LABEL} (Euron Plus / Super 30)")
341
+ ui.plain(f" {mark} euron {llm.EURON_LABEL}, on Euron's own GPUs (default; Euron Plus / Super 30)")
340
342
  for ref, note in rows:
341
343
  ui.plain(f" {'*' if ref == current else ' '} {ref} {note}")
342
344
  if not rows:
343
345
  ui.dim("No models of your own yet. Add one with `euron models add` (OpenAI, Claude, Ollama, Gemini, "
344
- "OpenRouter, Groq, or any OpenAI-compatible endpoint).")
346
+ "OpenRouter, Groq, or any OpenAI-compatible endpoint). Your own model uses your key and is "
347
+ "billed by your provider, not by Euron.")
345
348
  else:
346
349
  ui.dim("Switch with `euron models use <model>` or `euron --model <model>`; in a session, /model.")
347
350
  return EXIT_OK
@@ -2,9 +2,10 @@
2
2
 
3
3
  A model reference is ``provider:model`` (``openai:gpt-5.1``, ``anthropic:claude-sonnet-5-5``,
4
4
  ``ollama:llama3.1:8b``, ``groq:llama-3.3-70b-versatile``). A reference without a provider, or ``euron``,
5
- is a Euron model served by Euron's gateway. The gateway lists its models with a label that names the real
6
- model (Euron default = Claude Sonnet 5.5, Euron fast = GPT-6 Luna, Euron open = Euron's own servers); the
7
- provider keys stay on Euron's servers. ``euron:fast`` / ``euron:open`` / ``euron:default`` are shortcuts.
5
+ is the Euron model: Euron's own model, run by Euron on its own GPUs, served by Euron's gateway. It is the
6
+ default and the only model Euron pays for. Any other model (OpenAI, Anthropic, OpenRouter, Groq, Gemini, Ollama,
7
+ any OpenAI-compatible endpoint) is the user's own, with the user's own key, billed by that provider.
8
+ ``euron:default`` / ``euron:open`` are shortcuts for the Euron model.
8
9
 
9
10
  Providers come from built-in presets (PRESETS) merged with the user's own ``providers`` block in
10
11
  ~/.euron/settings.json (written by ``euron models add`` / ``/model add``). API keys come from the
@@ -114,14 +115,43 @@ def parse(ref: Optional[str]) -> ModelRef:
114
115
  return ModelRef(EURON, s)
115
116
 
116
117
 
118
+ #: what the self-hosted model was called before 1.5.1 / gateway label "Euron model" (2026-11-09)
119
+ _OLD_OPEN_LABEL = re.compile(r"^euron open", re.I)
120
+
121
+
117
122
  def remember_euron_models(models: List[Dict[str, Any]]) -> None:
118
123
  """Keep the gateway's model list (labels, kinds) for display. Older gateways send no labels."""
119
124
  for m in models or []:
120
125
  mid = str(m.get("id") or "")
121
126
  if not mid:
122
127
  continue
123
- _EURON_MODELS[mid] = {"label": str(m.get("display_name") or m.get("label") or ""),
124
- "kind": str(m.get("kind") or ""), "default": bool(m.get("is_default"))}
128
+ kind = str(m.get("kind") or "")
129
+ label = str(m.get("display_name") or m.get("label") or "")
130
+ if kind == "open" and (not label or _OLD_OPEN_LABEL.match(label)):
131
+ label = EURON_LABEL # Euron's own model on Euron's GPUs is simply "Euron model"
132
+ _EURON_MODELS[mid] = {"label": label, "kind": kind, "default": bool(m.get("is_default"))}
133
+
134
+
135
+ def euron_kind(model_id: str = "") -> str:
136
+ """"open" (Euron's own model on Euron's GPUs, also for an unknown id or an older gateway) or "hosted"."""
137
+ if not model_id:
138
+ model_id = next((k for k, v in _EURON_MODELS.items() if v.get("default")), "")
139
+ return str((_EURON_MODELS.get(model_id) or {}).get("kind") or "open")
140
+
141
+
142
+ def sort_euron_models(models: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
143
+ """The Euron model (kind open) first, then anything else the gateway lists."""
144
+ return sorted(models or [], key=lambda m: 0 if str(m.get("kind") or "open") == "open" else 1)
145
+
146
+
147
+ def identity(model_id: str, uses_euron: bool, byo_label: str = "") -> str:
148
+ """Who answers, for the model itself (honest identity, see prompts.CORE): the Euron model never claims a
149
+ vendor's name; the user's own model is named as it is."""
150
+ if not uses_euron:
151
+ return f"{byo_label or model_id} (the user's own model, with the user's own API key)"
152
+ if euron_kind(model_id) == "hosted":
153
+ return euron_label(model_id)
154
+ return f"{EURON_LABEL} (Euron's own model, run by Euron on Euron's own GPUs)"
125
155
 
126
156
 
127
157
  def euron_models() -> Dict[str, Dict[str, Any]]:
@@ -137,8 +167,9 @@ def euron_label(model_id: str = "") -> str:
137
167
 
138
168
 
139
169
  def resolve_euron_shortcut(name: str, models: Optional[List[Dict[str, Any]]] = None) -> Optional[str]:
140
- """`fast` -> euron-fast, `open` -> the self-hosted model, `default` -> "" (the account default); None if
141
- `name` is not a shortcut. Uses the gateway's list (kinds, ids), so new ids need no CLI change."""
170
+ """`open` -> the Euron model (self-hosted), `default` -> "" (the account default), `fast` -> a gateway model
171
+ whose id ends in -fast (none is offered today, so it ends as "not available"); None if `name` is not a
172
+ shortcut. Uses the gateway's list (kinds, ids), so new ids need no CLI change."""
142
173
  n = (name or "").strip().lower()
143
174
  if n not in EURON_SHORTCUTS:
144
175
  return None
@@ -153,8 +184,7 @@ def resolve_euron_shortcut(name: str, models: Optional[List[Dict[str, Any]]] = N
153
184
 
154
185
 
155
186
  def display_name(ref: Any) -> str:
156
- """What the user sees: the gateway's label for a Euron model (it names the real model), the real name for
157
- a third-party model."""
187
+ """What the user sees: "Euron model" (or the gateway's label), the real name for the user's own model."""
158
188
  r = ref if isinstance(ref, ModelRef) else parse(ref)
159
189
  return euron_label(r.model) if r.is_euron else f"{r.provider}:{r.model}"
160
190
 
@@ -91,7 +91,9 @@ def describe(settings: Optional[Dict[str, Any]] = None) -> List[Tuple[str, str]]
91
91
  _key, where = llm.find_key(r.provider, cfg)
92
92
  note = "no key needed" if cfg.get("noKey") and where == "none" else (
93
93
  f"key: {where}" if where != "none" else "no key yet (/model add)")
94
- note = f"{cfg.get('label') or r.provider}, {note}"
94
+ who = cfg.get('label') or r.provider
95
+ billed = "" if cfg.get("noKey") else f", your own key, billed by {who}"
96
+ note = f"{who}, {note}{billed}"
95
97
  except llm.ProviderError as e:
96
98
  note = e.message
97
99
  out.append((ref, note))
@@ -124,7 +126,7 @@ def add_interactive(ui, settings: Optional[Dict[str, Any]] = None, provider: Opt
124
126
  name = (provider or "").strip().lower()
125
127
  if not name:
126
128
  ui.info("Add your own model. It answers instead of the Euron model; its API key stays on this computer "
127
- "and is only sent to that provider.")
129
+ "and is only sent to that provider. Your provider bills you for it; Euron does not.")
128
130
  for i, (_k, label) in enumerate(CHOICES, 1):
129
131
  ui.plain(f" {i}. {label}")
130
132
  ans = _ask(ui, "Provider [1-7]: ")
@@ -49,7 +49,7 @@ CORE = """You are Euron Code, an AI coding agent that works inside the user's pr
49
49
  - When you finish, summarise in a few lines what you changed (files, why) and how you verified it (command and result). Say plainly what you could not verify; never claim a check you did not run.
50
50
  - If the request is ambiguous or risky, ask one clear question instead of guessing.
51
51
  - Use Markdown sparingly: short paragraphs, `code` for names and paths, fenced blocks for code.
52
- - If asked which AI model you are: you are Euron Code, running the model named under "Model:" in the <context> block (or in a later "[Euron Code: ... the model answering is ...]" note). Name it plainly, with its vendor; do not guess any other model, vendor or hardware."""
52
+ - If asked which AI model you are: you are Euron Code, running the model named under "Model:" in the <context> block (or in a later "[Euron Code: ... the model answering is ...]" note). If that is the Euron model, say you run on the Euron model, Euron's own model hosted by Euron on its own GPUs, and never claim to be another company's model or name one. If it is the user's own model, name that model plainly, with its vendor. Do not guess any other model, vendor or hardware."""
53
53
 
54
54
 
55
55
  SUBAGENT = """You are a read-only research sub-agent for Euron Code. You have read_file, list_dir, glob and grep, and nothing else: you cannot edit files or run commands.
@@ -1448,8 +1448,8 @@ class Repl:
1448
1448
  return None
1449
1449
 
1450
1450
  def _model_options(self) -> List[tuple]:
1451
- """(ref, note) for the picker: the Euron models first (default, fast, open, as the gateway lists
1452
- them), then every model the user added."""
1451
+ """(ref, note) for the picker: the Euron model first (the default, on Euron's own GPUs), then every
1452
+ model the user added (their own key, billed by their provider)."""
1453
1453
  from euron_code.llm import setup
1454
1454
  plus = "" if self.entitled else " (needs Euron Plus)"
1455
1455
  try:
@@ -1457,17 +1457,20 @@ class Repl:
1457
1457
  except api.EuronError:
1458
1458
  gw = []
1459
1459
  llm.remember_euron_models(gw)
1460
- labelled = [m for m in gw if m.get("display_name")]
1460
+ labelled = llm.sort_euron_models([m for m in gw if m.get("display_name")])
1461
1461
  if labelled:
1462
1462
  cur = ("euron:" + self.agent.model) if self.agent.uses_euron else self.agent.model
1463
1463
  opts = []
1464
1464
  for m in labelled:
1465
1465
  ref = "euron:" + str(m["id"])
1466
- note = str(m["display_name"]) + (", account default" if m.get("is_default") else "") + plus
1466
+ note = llm.euron_label(str(m["id"])) + (
1467
+ ", on Euron's own GPUs" if m.get("kind", "open") == "open" else "") + (
1468
+ ", default" if m.get("is_default") else "") + plus
1467
1469
  opts.append((ref, note + (", current" if ref == cur else "")))
1468
1470
  else: # an older gateway: one Euron model
1469
1471
  cur = self.agent.model if not self.agent.uses_euron else "euron"
1470
- opts = [("euron", llm.EURON_LABEL + plus + (", current" if cur == "euron" else ""))]
1472
+ opts = [("euron", llm.EURON_LABEL + ", on Euron's own GPUs, default" + plus
1473
+ + (", current" if cur == "euron" else ""))]
1471
1474
  for ref, note in setup.describe(self.agent.settings):
1472
1475
  opts.append((ref, note + (", current" if ref == cur else "")))
1473
1476
  if cur != "euron" and cur not in [o[0] for o in opts]:
@@ -1502,7 +1505,7 @@ class Repl:
1502
1505
  options = self._model_options()
1503
1506
  if not arg and getattr(self.ui, "live_mode", False) and self._question is None:
1504
1507
  self.ui.info(f"Current model: [bold]{escape(self.agent.model_label)}[/bold]. Pick one with the arrow "
1505
- "keys and Enter (Esc keeps it); /model add sets up your own.")
1508
+ "keys and Enter (Esc keeps it); /model add sets up your own (your key, billed by your provider).")
1506
1509
  arg = self._ask_live(_Question("pick", "model> ", options)).strip()
1507
1510
  if not arg:
1508
1511
  self.ui.dim(f"Model unchanged: {self.agent.model_label}")
@@ -1512,7 +1515,8 @@ class Repl:
1512
1515
  for i, (ref, note) in enumerate(options, 1):
1513
1516
  mark = "*" if note.endswith("current") else " "
1514
1517
  self.ui.info(f" {mark} {i}. {escape(ref)} [dim]{escape(note)}[/dim]")
1515
- self.ui.dim("Switch with /model <number or provider:model>. Add your own with /model add.")
1518
+ self.ui.dim("Switch with /model <number or provider:model>. Use your own model (OpenAI, Anthropic, "
1519
+ "OpenRouter, any OpenAI-compatible endpoint) with /model add: your key, billed by your provider.")
1516
1520
  return None
1517
1521
  if arg.isdigit() and 1 <= int(arg) <= len(options):
1518
1522
  arg = options[int(arg) - 1][0]
@@ -1534,7 +1538,8 @@ class Repl:
1534
1538
  except api.EuronError:
1535
1539
  ids = []
1536
1540
  if ids and ref.model not in ids:
1537
- self.ui.warn("That is not a Euron model. Use /model euron.")
1541
+ self.ui.warn("That Euron model is not available. The Euron model is the default (/model euron); "
1542
+ "to use another model with your own key, run /model add.")
1538
1543
  return None
1539
1544
  gid = ref.model or (self.me or {}).get("defaultModel") or "euron-coder"
1540
1545
  from euron_code.cli import apply_model_limits
@@ -135,6 +135,9 @@ class MockState:
135
135
  self.cached: Dict[str, int] = {}
136
136
  # gateway >= 2026-11-09: hosted Euron models with labels (euron-default / euron-fast / euron-coder)
137
137
  self.hosted_models = False
138
+ # gateway with hosted models off (prod since 2026-11-09): only the self-hosted model, labelled
139
+ self.open_only = False
140
+ self.open_label = "Euron model"
138
141
 
139
142
  def bump(self, key: str) -> int:
140
143
  with self.lock:
@@ -517,6 +520,11 @@ class Handler(BaseHTTPRequestHandler):
517
520
  if path == "/v1/models":
518
521
  if not self._auth():
519
522
  return
523
+ if self.state.open_only:
524
+ return self._send_json(200, {"object": "list", "data": [
525
+ {"id": "euron-coder", "object": "model", "owned_by": "euron", "context_length": 32768,
526
+ "display_name": self.state.open_label, "kind": "open", "max_output_tokens": 8192,
527
+ "is_default": True}]})
520
528
  if self.state.hosted_models:
521
529
  return self._send_json(200, {"object": "list", "data": [
522
530
  {"id": "euron-default", "object": "model", "owned_by": "euron", "context_length": 128000,