Skip to main content

Euron Code

Imagine It. Prompt It. Build Anything.

Your AI Software Engineer. Ready to Build.

From a simple website to a complete AI-powered application, Euron Code turns your ideas into real, working software.

It doesn't just write code. It thinks, plans, builds, runs, tests, finds errors, and fixes them. All from your terminal.

No more starting from scratch. Euron Code intelligently reuses existing open-source implementations, writes what's missing, and brings everything together.

One idea. One prompt. Endless possibilities.

Get started in 3 steps

1. Install (Python 3.9 or newer; Windows, macOS, Linux). From PyPI, https://pypi.org/project/euron-code/:

pip install euron-code

Or let one command install it and put euron on your PATH:

# Windows PowerShell
irm https://euron.one/code-agent/install.ps1 | iex
# macOS / Linux
curl -fsSL https://euron.one/code-agent/install.sh | sh

If the terminal then says 'euron' is not recognized or euron: command not found, run python -m euron_code fix-path and open a new terminal (see Troubleshooting).

2. Run it in your project folder:

cd my-project
euron

The first time, your browser opens to log in with your Euron account (one click to approve; the key is then saved on your computer). In a new folder, Euron Code offers to set the project up for you: press Enter.

3. Type what you want, or type / to see every command:

  • build me a todo app with a FastAPI backend and tests
  • the tests fail, find out why and fix them
  • /usage to see your tokens today, this week, month and year

That's it. Press Esc to stop it, Ctrl-D to quit.

Everything you need to build

  • 🧠 Thinks Before It Codes: understands your requirements and plans the implementation.
  • ⚡ Builds Complete Applications: websites, SaaS products, AI agents, APIs, dashboards, automations, and more.
  • 🛠️ Writes, Runs & Fixes: creates files, executes commands, runs tests, and fixes errors.
  • 🔍 Reuses Proven Code: discovers reusable Euron and approved open-source components to build faster.
  • 🔄 Works Across Your Project: understands existing code and makes changes without unnecessarily rebuilding everything.
  • 🚀 From Idea to Working Software: helps you build, test, and prepare real applications for deployment.

10 million AI tokens every day

Build more. Experiment more. Create without constantly worrying about tokens.

Up to 10 million tokens per day, subject to fair-use policies, model availability, and plan limits.

Included with Euron Plus and Super 30 (get Plus at https://euron.one/plus).

Track your usage any time: euron usage in a terminal, /usage in a session, or https://euron.one/code-agent/usage.

Euron Code: You Imagine. We Code. You Create.

What happens automatically

  • Project setup. The first time in a folder (or a fresh clone) it sets the project up by itself: EURON.md (your stack, build and test commands, layout), rules for your stack (testing, git, security), handy commands (/fix-tests, /commit, /pr, /security-review), safe permission settings and a .gitignore for your stack (only the missing essentials are added to an existing one). Locally, in a second, no AI call. Edit the files freely; /init lets the AI improve EURON.md.
  • It learns the project, and keeps learning. On the first run it analyses the code into .euron/knowledge/codemap.md: what each source file is for, routes, the environment variables the code reads, tests, config and CI. After every task it adds to .euron/knowledge/journal.md (what was asked, files changed, commands and whether they passed), remembers every file it built in built.json, and rewrites .euron/rules/learned.md with what works here (the test, lint and build commands that pass, commands that keep failing, security lessons). A compact summary of all of it goes into every new session, so Euron Code starts from what it already knows instead of exploring the repository again: less time, less context, fewer tokens. The code map refreshes itself when the code moves on (a git pull, many changed files).
  • Security assessment from day zero. On the first run it checks the whole project on your computer for common vulnerabilities (secrets and API keys in code, SQL built from strings, eval, shell injection, unsafe deserialisation, TLS checks turned off, unverified JWTs, open CORS, XSS sinks, weak hashes, secrets files git would commit, and more), then rescans every file it changes after each task, and the files changed outside it when a session starts. Every finding, with what to do about it, is kept in .euron/security/assessment.md, together with what was resolved and a log of every scan. New findings are shown as soon as they appear, and the open ones are part of the context, so the AI fixes them when it touches those files and does not add new ones. /security rescans, /security-review fixes them. Accept a line as safe with an euron: ignore-security comment.
  • Context management. Old tool output is cleared and long conversations are summarised before they fill the context, so it never runs out mid-task. Long answers continue by themselves.
  • Token saving. Unchanged files are not re-read and big files are read in parts.
  • Local cache. .euron/cache/ remembers the repo map and file list, so new sessions start fast. Safe to delete; never holds secrets; git-ignored.
  • Runs your app. It can start your dev server in the background, check it answers (check_app, optionally in a headless browser), read its logs and stop it again.
  • Builds from references, not from scratch. Every build request first searches GitHub from your computer for permissively licensed projects that already do it, and the AI starts from the best one. The report after each task says what was really reused (code now in your project), what was only read, and about how many tokens that saved.
  • Reuse first, also from Euron. For "build me X" and for UI work it first searches Euron's open-source repos, then permissively licensed projects on GitHub, reads only the files it needs, adapts them (keeping the licence notice and recording each source in THIRD_PARTY_NOTICES.md) and writes only what is missing. Faster, and far fewer tokens. Try /reference <what you want to build>.
  • Live progress. While it works you see what it is doing, the time, tokens and an esc to interrupt line, and you can keep typing (see below).

Euron models

Euron Code's default is the Euron model: Euron's own model, run by Euron on Euron's own GPUs. It is included with Euron Plus and Super 30; you only need your Euron login. Your prompts and the code Euron Code sends go to Euron's own servers and nowhere else. Your daily token allowance applies to it.

If you would rather use Claude, GPT or any other model, bring your own key (next section). That model is billed by its provider, on your account, not by Euron.

Use your own model

Available from Euron Code 1.1.0. Check yours with euron version (or euron --version, or /version inside a session) and update with pip install -U euron-code.

The Euron model is the default and is included with Euron Plus and Super 30. Any signed-in Euron account can also use its own model with its own API key: OpenAI, Claude (Anthropic), OpenRouter, Google Gemini, Groq, Ollama on your computer, or any OpenAI-compatible endpoint (LM Studio, Together, the EURI API, your own server). Everything else works the same: tools, plan mode, permissions, hooks, rewind and automatic context management.

Your API key stays on your computer (system keychain, or ~/.euron/credentials.json readable only by you), is sent only to that provider, and is never printed, logged or sent to Euron. With your own model, your prompts and code go to that provider, it bills you for them, and Euron pays nothing and charges nothing. It does not use your Euron tokens.

The quickest way is the guided setup. It asks for the provider, the key (hidden as you type), and the model, then checks that the model answers and can call tools:

euron models add          # or, inside a session: /model add

OpenAI

export OPENAI_API_KEY=sk-...                  # PowerShell: $env:OPENAI_API_KEY = "sk-..."
euron models add openai                       # lists the models your key can use; pick one
euron --model openai:<model-id>               # or use a model id directly for one run

Claude (Anthropic)

euron models add anthropic                    # asks for the key (hidden), lists your models, checks one answers
# or, with the key in the environment:
export ANTHROPIC_API_KEY=sk-ant-...           # PowerShell: $env:ANTHROPIC_API_KEY = "sk-ant-..."
euron --model anthropic:claude-sonnet-5-5

Claude runs through its native API with tool use and prompt caching, so long sessions re-read the conversation from the cache instead of paying for it every step.

Ollama (local, no key)

ollama pull llama3.1
OLLAMA_CONTEXT_LENGTH=32768 ollama serve      # Euron Code needs a context of 16k tokens or more
euron --model ollama:llama3.1

Pick a local model that supports tool calling. Ollama on another machine: euron models add ollama and give its address (or set OLLAMA_HOST).

OpenRouter (hundreds of models with one key)

euron models add openrouter                   # or: export OPENROUTER_API_KEY=sk-or-...
euron --model openrouter:<vendor>/<model-id>  # e.g. the id shown on openrouter.ai/models

Any OpenAI-compatible endpoint

euron models add custom      # asks for a short name (e.g. mylab), the base URL ending in /v1, and the key
euron --model mylab:<model-id>

Built-in names that only need their key in the environment: gemini (GEMINI_API_KEY), openrouter (OPENROUTER_API_KEY), groq (GROQ_API_KEY), together, deepseek, mistral, lmstudio, and euri (EURI_API_KEY, the EURI API).

Switching

Where Command
in a session /model (pick with the arrow keys), /model euron (back to the Euron model), /model add, /model <provider:model>, /model remove <provider>
default for every run euron models use <provider:model>, back with euron models use euron
one run euron --model <provider:model> (also with -p)
see what is set up euron models

The conversation is kept when you switch. The status line shows which model answers: "Euron model", or your 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 gave in euron models add), up to byoMaxContext (128,000 tokens by default, because every step resends the conversation on your bill). A model that cannot call tools is refused with a clear message.

Without Euron Plus you can still log in (euron login) and use your own model; the Euron model then says it needs Plus.

Commands

Type / and pick from the menu. The most useful:

Command What it does
/model who answers: the Euron model or your own (/model add); works while a task runs
/retry send the last message again (after a busy server or a dropped connection)
/usage your quota today, this week, month and year, refill times, and what it is worth
/status account, key, model, mode, session time and quota at a glance
/cost, /context tokens of this session and what fills the context
/attach <files> attach files, folders, Word/Excel/PowerPoint/PDF documents or images
/reference <what> references to build from: Euron's repos + permissive open source, with licences
/reuse <query> search Euron's open-source repos for code to reuse
/components your component library: reused code whose tests passed in your projects
/ps background processes (dev servers) it started; /ps stop
/plan plan mode: it explores and proposes a plan, changes nothing
/review review your uncommitted changes
/rewind (or Esc Esc) undo the last turn's file changes
/compact, /clear summarise the conversation, or start fresh
/resume, /export go back to a saved session, or save this one as Markdown
/effort low|medium|high how much the model thinks before answering
/mode auto|economy|balanced|advanced how hard Euron Code works on a request (same model): Euron Auto is the default
/login, /logout, /whoami switch account, log out, who am I
/help everything else: rules, skills, hooks, memory, permissions, config, bug, release notes

Shortcuts: @file attaches a file (Tab completes), drag files or screenshots into the terminal to attach them, !command runs a shell command yourself, # note saves a note to memory, Shift+Tab changes the mode, Ctrl+V pastes an image (with Pillow installed).

Typing while it works

The task runs in the background and the prompt stays live. /usage, /cost, /context, /status, /model, /effort, /todos, /permissions and /help answer at once (a model change applies from the next step, a mode change from the next tool call). Anything else you type is queued as your next message. Esc or Ctrl-C stops the task, including a running command, and puts queued messages back in the input line. Permission questions are answered in the same prompt.

The bottom bar always shows the model and effort, the mode, this session's tokens and their value, how full the context is, what is left today and this week, and how long the session has been up.

Modes

Mode How What it does
default asks before edits, commands and web fetches
acceptEdits ("auto-apply") Shift+Tab, or --permission-mode acceptEdits edits inside the project apply without asking; commands still ask
plan Shift+Tab twice, /plan read-only; it proposes a plan, you decide when it may act
bypass euron --dangerously-skip-permissions (or --permission-mode bypassPermissions, --yolo) nothing asks. Only in a throwaway folder or container. Paths outside the project still ask

Shift+Tab cycles default -> acceptEdits -> plan. In a session started with bypass it switches between bypass and plan only, and leaving plan mode (Shift+Tab, /plan, accepting a plan with a) goes back to bypass, sub-agents included. /permissions mode default turns bypass off when you want edits to ask again. --add-dir ../shared lets it also work in another folder.

Your code and your account

  • Your code stays on your computer.
  • One login at a time: signing in on another computer signs this one out.
  • Don't paste passwords or API keys into prompts.

How Euron Code reuses proven code

Search first, reuse second, modify third, generate only what is missing. When you ask it to build an app, a feature, a UI or an integration, Euron Code itself splits the request into a few components and asks Euron for proven code for each one before the model starts (the model can ask for more with find_reusable): Euron's own repositories, your own component library and approved open-source projects. You see a decision table (component, REUSE / ADAPT / GENERATE, repository@commit, licence, confidence). REUSE reads the pinned files and integrates them with minimal edits, ADAPT reads and modifies them, GENERATE writes the part itself. For websites and UI it asks for Euron's TypeScript / TSX components. Small edits, bug fixes and questions skip this step. The details you give (your name, photo, email, links) go into the files; an attached photo is copied into the project's assets/ (or public/) folder, and if a changed file still says "Your Name" or "Lorem ipsum" Euron Code is asked once to fix it. If that search is unavailable it simply generates, with a short note. When the tests pass on reused or adapted code, the component is added to your private library (its name, source, commit, licence and test result; never your code): /components lists it. Turn reuse off with --no-reuse for one run, reuse.enabled false, or keep it to Euron's own code with reuse.external false.

Licence rules: only MIT, Apache-2.0, BSD, ISC, 0BSD, Unlicense, MPL-2.0, CC0 and Zlib code is reused (see below); a candidate whose licence or security scan fails is always turned into GENERATE by the CLI itself, whatever the server says.

Reusing open source safely

Only code under MIT, Apache-2.0, BSD-2/3-Clause, ISC, 0BSD, Unlicense, MPL-2.0, CC0-1.0 or Zlib is used. GPL, AGPL, LGPL, SSPL and unlicensed code is never copied: Euron does not serve it and the CLI checks again. MPL-2.0 files stay separate files under their own licence. Every reused source is recorded in your project's THIRD_PARTY_NOTICES.md, and the completion report lists it (Reused: owner/repo/path (MIT)).

All of GitHub, from your own computer

Euron Code searches all public repositories on GitHub directly from your machine, so you get your own GitHub allowance (and code search too when you are signed in with gh auth login or set GITHUB_TOKEN; the token is only ever sent to GitHub, never to Euron, and never printed). A chosen reference is downloaded once at a pinned commit into ~/.euron/cache/oss, indexed on your computer, and reused in later sessions: searching it and reading parts of it needs no network and no tokens. oss_adopt copies the few files that are worth reusing into your project with their licence header, copies the LICENSE (and NOTICE for Apache-2.0) to third_party/licenses/, and records repo, commit, licence and files in THIRD_PARTY_NOTICES.md. The licence comes from GitHub's licence detection and is checked in code: a repo with no detected licence, NOASSERTION, GPL, AGPL, LGPL, SSPL, BUSL, a non-commercial licence or a Commons Clause rider is refused.

euron cache lists what is cached, euron cache size shows the total, euron cache clear [owner/name] removes it. The cache keeps up to 2 GB (least recently used first out; reuse.cacheMaxMB) and at most 50 MB per repo (reuse.repoMaxMB). reuse.local false (or EURON_OSS_LOCAL=0) asks Euron's service instead of GitHub; when GitHub is offline or its rate limit is reached, Euron Code falls back to it by itself. Full walk-through: docs/USE_CASES_REUSE.md.

Limits and value

Your plan has a token allowance per day, week, month and year, the same for Euron Plus and Super 30. /usage (or euron usage) shows each with a bar, what is left and when it refills, in your local time. Days, weeks (Monday), months and years start at midnight IST. If a limit is reached, Euron Code says which one and when it refills; nothing else breaks.

It also shows what your own usage would cost at reference market API prices. It is not a bill: you pay nothing extra. The same numbers are on https://euron.one/code-agent/usage.

Run and check your app

start_background_process starts a dev server or watcher and waits until its port answers (or a ready line appears); check_app loads a page the way a browser does and reports the status, timing and title, every stylesheet, script, image and font the page uses that is missing (404, wrong relative path, an HTML page served instead of CSS), where the missing file really is in your project and a URL that works, and server errors printed in the page (PHP, Laravel, Django, Next.js). It checks a local URL without asking, a dev URL after you allow its domain, or an .html file in the project that it serves itself. When Chrome, Edge or Chromium is installed (or pip install "euron-code[browser]" and playwright install chromium), it also opens the page in a headless browser for console errors and a screenshot; without one, the rest of the check still runs. When the pages come from a bought HTML / admin template, fix_page_assets copies the template's assets (a folder or a .zip) into your app's web root (Laravel public/, Django / Flask static/, Express public/) and rewrites the asset links of every page (asset() in Blade, {% static %} in Django, url_for in Flask), then checks that nothing is missing. read_process_output shows its logs and stop_process stops it. At most 3 run at once, and all of them are stopped when you exit, /clear or /rewind.

Attach anything

  • @report.docx, @data.xlsx, @slides.pptx, @paper.pdf, @sales.csv, @notebook.ipynb: turned into compact text on your computer (tables stay tables). Large documents are cut at about 6k tokens and the AI reads more pages, sheets or rows when it needs them.
  • @src/ attaches a folder digest (tree, file types, key files) instead of every file.
  • Images (.png .jpg .gif .webp .bmp, up to 5 per message, 5 MB each): drag a screenshot into the terminal, use @shot.png, or Ctrl+V / /paste-image. pip install "euron-code[images]" adds resizing and clipboard paste.

More

Log in and accounts

euron login            # log in (or switch to another Euron account)
euron login --force    # switch without asking
euron whoami           # who you are, and your plan
euron logout           # remove the key from this computer

One login at a time: signing in on a new computer signs out the old one. If an account is already running Euron Code in another terminal, you are asked whether to take over (-p --takeover in scripts).

The approval page approves for whichever Euron account is signed in on euron.one in that browser, so to switch accounts sign in there with the other account first (or open the link in a private window). If no browser opens (SSH, WSL), copy the link it prints. The key is kept in the system keychain, or in ~/.euron/credentials.json (readable only by you). To revoke a login, remove it at https://euron.one/code-agent.

Optional extras: pip install "euron-code[images]" (image resizing, clipboard), "euron-code[postgres]", "euron-code[mysql]" (database explorer). Check the install with euron --version and euron doctor.

Answering permission questions

Your answers are remembered for the project (saved in ~/.euron, never in the repo), so Euron Code does not ask the same thing again: not in a new session, not after continue or --resume, not in a sub-agent.

Key Meaning
y yes, this time
n no (you can then tell it what to do instead)
a always for this project: this exact command, all edits inside the project, or this website
p always for this project: every command that starts the same way (e.g. every npm test ...)
u always, in every project (a command prefix, auto-approve edits, a website)

Some questions stay: a destructive command, a file outside the project, a secret-looking file (.env, keys) and Euron Code's own settings (EURON.md, .euron/). Each exact one is asked once per project (y remembers it, o allows it only this time), or every time after /permissions ask-every-time on. /permissions lists what is allowed and where it is saved; /permissions revoke <n> takes one back; /permissions reset forgets them all.

All commands

Command What it does
/help list commands, your own commands and skills, and the shortcuts
/status, /whoami account, key, API, model, mode, session, uptime, quota
/usage (/users) quota per period, refill times, value, sessions, tasks, cache share, last 30 days
/cost, /context what this session used; what fills the context
/model [id], /effort pick or set the model; reasoning effort
/compact [focus], /clear summarise to free context; start fresh
/resume [id], /rewind, /export [file] saved sessions; undo the last turn; save as Markdown
/attach <paths>, /paste-image attach files, folders, documents, images to the next message
/memory, /memory edit show or edit EURON.md memory
/init map the repo and let the AI write EURON.md
/rules, /rules new <name> list rules, create a rule file
/skills, /skills new <name> list skills and commands, create a skill
/hooks, /hooks new, /hooks enable list hooks, add an example, enable the set-up examples
/review [focus], /plan review uncommitted changes; plan mode
/security, /security-review rescan the project and list open findings; let the AI fix them
/knowledge rebuild the code map and show what goes into the context
/permissions what is allowed and where it is saved; revoke <n>, reset, auto-edits on|off, ask-every-time on|off, mode acceptEdits, allow "Bash(pytest:*)"
/config show settings; /config set <key> <value> [--project]
/thinking show|collapse|hide, /todos, /doctor reasoning display, task list, setup check
/login, /logout, /bug, /release-notes, /exit
/<skill or command> [args] run one of your skills or custom commands

Plan mode

In plan mode Euron Code can only read and search: edits, shell commands and database writes are refused. It explores and answers with a numbered plan. You then choose: a accept edits and go, y go but ask before each change, or Enter to keep planning. The model cannot leave plan mode by itself.

Rewind

Before Euron Code's file tools change a file, the original is kept in memory for that turn. /rewind (or Esc Esc) puts the files back, removes the turn from the conversation and puts your prompt back in the input line. Files you changed again after that turn are skipped (use /rewind --force). Changes made by shell commands (npm install, a code generator) are not undone.

Continue later

Every session is saved under ~/.euron/sessions/ (text only, without attached images).

euron --continue     # pick up the latest session in this folder
euron --resume       # choose from a list (or /resume inside a session)

Project setup

The first interactive run in a new folder (or euron init, or euron -p --yes) creates, without overwriting anything that exists:

EURON.md                      stack, commands, layout, entry points
.euron/rules/                 testing.md, git.md, security.md + python.md / node.md / go.md / rust.md
.euron/settings.json          allow rules for your test and lint commands and read-only git
.euron/hooks.example.json     example hooks, OFF until you run /hooks enable
.euron/commands/              /fix-tests, /commit, /pr, /security-review
.gitignore                    for your stack (secrets, build output, Euron's local data); an existing
                              one only gets the missing essentials

and then, every session and after every task, keeps up to date:

.euron/knowledge/codemap.md   what the code is: files and their purpose, routes, env var names, tests
.euron/knowledge/journal.md   every task: request, files, commands (pass/fail), result
.euron/knowledge/built.json   every file Euron Code created or changed, and by which tasks
.euron/rules/learned.md       what works in this project, and security lessons
.euron/security/assessment.md open and resolved findings since day zero, and the scan log

.euron/knowledge/ and .euron/security/ stay on your computer (git-ignored): they hold your prompts and the open findings. Rules, commands and EURON.md are meant to be committed. Never in your home folder or a drive root. Set EURON_NO_AUTOSETUP=1 to be asked with euron init instead, or EURON_NO_KNOWLEDGE=1 to turn the project memory and security checks off.

Memory: EURON.md

Put project instructions in EURON.md at the project root (commands to build and test, conventions, things to avoid). Euron Code reads it at the start of every session, together with EURON.md files in parent folders up to the git root and your personal ~/.euron/EURON.md.

/init builds a map of the repository on your computer (detected stack, commands from the manifests, top-level layout, entry points), then has the model confirm it and write a short EURON.md: commands, layout, conventions and a compact repo map. It also offers to create .euron/rules/ and .euron/settings.json skeletons.

Rules

Rules are short instructions for every session, kept in separate files: .euron/rules/*.md (project, commit them) and ~/.euron/rules/*.md (yours, all projects). They are loaded after EURON.md. /rules lists them, /rules new testing creates .euron/rules/testing.md (add --user for your own folder).

A rule can apply to some files only:

---
paths: ["src/**/*.py", "tests/**"]
---
- Use type hints on every function.
- Tests use pytest fixtures, never unittest.

Such a rule is sent to the model the first time it reads or edits a matching file in the session, not before. ** matches any folders, * anything within a name; a pattern without / (like *.py) matches the file name anywhere. HTML comments (<!-- -->) in rule files are never sent.

Skills

A skill is a saved set of instructions for a job, in .euron/skills/<name>/SKILL.md (project) or ~/.euron/skills/<name>/SKILL.md (yours):

---
name: deploy-check
description: Check the app is ready to deploy (tests, lint, migrations). Use before a release.
---
1. Run the tests and the linter...

Only the names and descriptions are in the model's context; it loads the full instructions with its skill tool when a request matches. You can run one yourself: /deploy-check staging. $ARGUMENTS in the body is replaced by what you type after the name. /skills lists them, /skills new <name> creates one.

Built in: /review (reviews your uncommitted git changes), /test-writer <target> (writes and runs tests with your project's framework) and /explain-codebase [topic]. A project skill with the same name replaces a built-in one.

Custom commands

A Markdown file in .euron/commands/<name>.md (or ~/.euron/commands/) becomes /<name>. Its text is sent as your message, with $ARGUMENTS replaced:

---
description: Fix a GitHub issue
---
Read issue $ARGUMENTS with `gh issue view`, find the cause, fix it and add a test.

/fix-issue 42 then does exactly that. Commands show up in /help and Tab completion.

Hooks

Hooks are your own shell commands that run at fixed points. Put them in settings.json (~/.euron/settings.json or .euron/settings.json):

{
  "hooks": {
    "PostToolUse": [{"matcher": "Edit|Write", "command": "npx prettier --write .", "timeout": 30}],
    "PreToolUse":  [{"matcher": "Bash", "command": "python scripts/check_command.py"}],
    "UserPromptSubmit": [{"command": "git status --short"}],
    "SessionStart": [{"command": "git log --oneline -5"}],
    "Stop": [{"command": "python -m pytest -q || (echo tests fail 1>&2 && exit 2)"}]
  }
}
Event When Exit code 2
SessionStart once, at the start (stdout is added as context)
UserPromptSubmit before your message is sent drops the message; stderr is shown. stdout is added as context
PreToolUse before a tool runs blocks the tool; stderr goes to the model
PostToolUse after a tool ran stderr goes to the model as feedback
Stop when the model finishes its answer stderr goes to the model and it continues (at most twice)

Any other non-zero exit is shown as a warning and blocks nothing. matcher is a regular expression over the tool name; the common short names (Edit, Write, MultiEdit, Read, Bash, Grep, Glob, WebFetch) and Euron Code names (edit_file, bash, ...) both work. The command runs in the project folder with cmd.exe on Windows and sh elsewhere, and gets one JSON object on stdin: event, session_id, cwd, tool_name, tool_input, tool_output (PostToolUse) or prompt. Environment: EURON_PROJECT_DIR, EURON_SESSION_ID, EURON_HOOK_EVENT, EURON_TOOL_NAME, EURON_FILE. /hooks lists them, /hooks new adds an example (format Python files with ruff after each edit).

Project hooks need your OK. A cloned repository could ship a harmful hook, so hooks from .euron/settings*.json are shown to you once and only run after you trust them. The answer is remembered in ~/.euron/trusted-hooks.json; if the project's hooks change you are asked again. In -p mode untrusted project hooks are skipped with a warning. Your own ~/.euron/settings.json hooks always run.

Context and tokens (automatic)

Euron Code manages the conversation for you, with nothing to set up:

  • Always room to answer. Each request leaves space for the reply; a conversation that is getting full is tidied up first.
  • Clearing. Old tool output is replaced with one-line notes that say what to re-read (for example read_file src/app.py lines 1-200), so the agent keeps going without losing track.
  • Summary. Long conversations are summarised: the task, decisions, files changed, commands and results, the last error and open todos. A summary only runs when clearing is not enough, never twice in a row: in between, old output is cleared instead.
  • Long answers and big edits. An answer that gets cut off continues by itself. A huge edit that gets cut off is never applied half-way; the change is made in smaller steps instead.
  • Reasoning effort is medium for planning and after a failure, lower for routine steps (continuing after successful edits, reads and commands), and low for quick follow-ups ("thanks", "continue"); change it with /effort low|medium|high (adaptiveEffort: false keeps one level for every step).
  • Finishes in time. A request has a soft budget that fits its size: a question 12 steps / 6 minutes, a small change 30 steps / 15 minutes, a big job 60 steps / 30 minutes. Time spent waiting for your answer does not count. Set your own with taskTimeBudgetMinutes / taskStepBudget (--no-budget for one run). Then Euron Code stops and lists what is done (files, last check), what is left and the next step; say "continue" to go on, or /rewind to undo the request's changes (including what its commands changed). When the same error keeps coming back, it stops and re-plans instead of repeating itself.
  • Sub-agents in parallel. For independent parts of a big task the agent can start up to 3 sub-agents at once: read-only researchers, or builders that each own their own files (for example one writes the Dockerfile while another writes the training script). Their edits ask like any other edit and are undone by /rewind.
  • Reads. Files are read in parts; a very large file returns an outline first. Re-reading an unchanged file returns a one-line note instead of the content.

/cost and /context show what this session used and what fills the context.

Non-interactive use (scripts, CI)

euron -p "summarise what this repo does"
git diff | euron -p "review this diff"
euron -p "run the tests and fix failures" --allowed-tools "Edit,Bash(pytest:*)" --max-turns 20
euron -p "list the API routes" --output-format json

In -p mode nothing can ask you, so anything that needs permission is refused unless an allow rule covers it (--allowed-tools, or settings). --yolo skips all prompts: only use it in a throwaway folder or container.

--permission-mode plan gives a read-only run that ends with a plan.

With --output-format json the result also has reuse (one entry per planned component: component, decision, repo, license), reused (files read from references) and task_id.

Exit codes: 0 ok, 1 error, 2 bad usage, 3 no Euron Plus / Super 30 access, 4 not logged in or key rejected, 5 a token allowance used (day, week, month, year) or a cooldown, 6 --max-turns reached, 130 interrupted.

Database explorer

Euron Code can look at your app's database while it works. SQLite files inside the project work directly (look at app.db and tell me which tables have no index). For Postgres or MySQL, name a connection in your settings; ${VAR} reads from the environment so passwords stay out of the file:

euron config set --project db.connections.app "postgresql://dev:${PGPASSWORD}@localhost:5432/app"

It is read-only: only SELECT, WITH, EXPLAIN, SHOW, PRAGMA and similar are allowed, and the connection itself is opened read-only. To let it write (local dev databases only), run euron config set db.allowWrites true; every write statement still asks you first.

Settings

euron config set <key> <value> writes ~/.euron/settings.json (add --project for .euron/settings.json in the current folder). euron config list shows the merged result.

Key Default
model your account default model id
reasoning collapse show, collapse or hide the model's thinking
permissions.allow / permissions.deny [] rules like Edit, Bash(npm test:*), WebFetch(domain:docs.python.org), Read(~/notes/**)
permissions.defaultMode default default, acceptEdits (edits inside the project need no prompt), plan (read-only) or bypassPermissions
bashTimeout 120 seconds before a command is stopped
shell auto PowerShell on Windows, bash/zsh elsewhere; or cmd, bash, a path
autoCompact true clear tool outputs from 50%, summarise at 70% (of the usable window)
compactThreshold 0.7 when to summarise the conversation
microCompactThreshold 0.5 when to start clearing tool outputs
microCompactTarget 0.4 clear until under this
microCompactKeepSteps 1 tool outputs of the last N steps are always kept
outputReserve auto tokens kept free for the answer (default min(8192, window/4))
reasoningEffort medium low, medium or high (also /effort)
mode auto auto (Euron Auto), economy, balanced, advanced (also /mode, --mode); never changes the model
taskCheckpoints true keep a checkpoint per job in ~/.euron/tasks/ so continue resumes without redoing work
taskOutcomeReports true send each task's status (no code, no prompt text) to Euron
sslTrustStore certifi system uses your computer's certificate store (company proxies); verification is always on
attachmentMaxTokens 6000 cap per attached document or folder digest
toolOutputMaxChars 12000 longer tool output is cut to head + tail
hooks {} see Hooks
webFetch true allow the web page tool (it still asks per site)
reuse.enabled true look for reusable code before building (--no-reuse for one run)
reuse.external true also search permissively licensed GitHub projects, not only Euron's
errorReporting true send a short error report when something fails (see below)
db.connections.<name> database DSNs

Error reports. When something fails, Euron Code sends Euron a short error report (the error kind and code, the tool or command name, version and OS; never your prompts, code or secrets) so it can be fixed. /bug shows your last ones. Turn it off with euron config set errorReporting false or EURON_NO_ERROR_REPORTS=1.

Environment variables: EURON_API_KEY (use a key without logging in, for CI), EURON_HOME (instead of ~/.euron), EURON_NO_BROWSER=1.

In VS Code

Open your project folder in VS Code, then open the integrated terminal (**Ctrl+**, or **Terminal > New Terminal**) and run euron`. It works in the folder VS Code opened, and edits show up in the editor straight away. Tips:

  • On Windows the integrated terminal is PowerShell by default; Euron Code runs commands with PowerShell too. To use Git Bash instead: euron config set shell bash.
  • If euron is not found after pip install, the Python Scripts folder is not on your PATH. Run python -m euron_code fix-path once, then restart VS Code. python -m euron_code works meanwhile.
  • Keep your edits saved before asking Euron Code to change the same file.

Troubleshooting

Which version am I running? euron version prints the version, the Python that runs it, whether a newer release is on PyPI, and the exact command to update that Python. euron --version (or -V) prints just the number; inside a session use /version or /status.

You see What to do
You don't have Euron Plus access... Euron Code needs Euron Plus or an active Super 30 enrolment: https://euron.one/plus
not logged in / key was rejected run euron login again (keys can be revoked at euron.one/code-agent)
servers are busy, retrying normal at peak times; it retries for you. If it gives up, try again in a few minutes
Rate limit reached too many requests in one minute; it waits and retries
today's token allowance you used today's limit; it resets at the time shown (midnight IST)
this week's token allowance you used this week's limit; it resets at the time shown (Monday, midnight IST); month and year work the same way
paused for you until too many rejected requests in a few minutes; wait until the time shown
Images aren't available right now the image service is off; describe the picture in text
untrusted project hook(s) the folder has hooks you have not approved; run euron there interactively once to review them
Connection dropped, resuming... the connection dropped mid-answer; Euron Code asks again by itself and nothing is applied twice. If it keeps dropping, your message is kept: send /retry
Cannot reach Euron Code ... WinError 10054 (connection forcibly closed) your network reset the connection (often a broken IPv6 route, a VPN, a proxy or an antivirus web shield). 1.1.1 and later retry and switch to IPv4 by themselves; you can force it with EURON_IPV4=1. If it still fails, allow euron.one in the VPN/antivirus and run euron doctor
pip install -U euron-code did not change the version pip updated a different Python. euron version prints the exact upgrade command for the Python that runs euron
Client_Requirement_Document.docx looks like a binary file fixed in 1.1.1: Word, Excel, PowerPoint and PDF files are read as text
'euron' is not recognized as the name of a cmdlet (Windows) or euron: command not found pip put the euron command in a Scripts folder that is not on your PATH. Run python -m euron_code fix-path (on Windows py -m euron_code fix-path works too), then close and reopen the terminal. Right away, python -m euron_code login and python -m euron_code do everything euron does
garbled colours on old Windows consoles use Windows Terminal or VS Code's terminal

euron doctor checks Python, the connection, your login and plan, ripgrep (faster search; optional) and the keychain.

Privacy and safety

  • Your code stays on your computer; the agent works on it from your terminal.
  • Your key is never printed in full and never logged. Keys for your own model are sent only to that provider, never to Euron.
  • Edits and commands ask first. Files outside the project folder always ask, even to read.
  • web_search sends only the search question (your project path, home folder and anything that looks like a secret are masked) to Euron's research service.
  • When a task is stuck on the Euron model, a stronger helper model run for Euron may answer a few of its steps; it sees the same conversation the Euron model sees, and the task then goes back to the Euron model.
  • Hooks are commands you configure; project hooks only run after you trust them.
  • Text inside your files, web pages and command output is treated as data, not instructions.

A cloned repo cannot take over your machine

A repository can ship .euron/settings.json, EURON.md, rules, skills and commands. Anything in them that loosens a safety setting (allow rules, bypassPermissions, shell, db.*, raised limits) and every instruction file for the agent only applies after you trust the repo once. Euron Code lists exactly what the repo ships and asks: trust, ignore, or view it first. If any of it changes later (a git pull), it asks again. Restrictions (deny rules, plan mode, lower limits) always apply. Your own ~/.euron settings are always trusted, and rules you approve with s are saved under ~/.euron, not in the repo. In -p mode an untrusted repo's settings are ignored with a warning; run euron trust once in that folder (or /trust in a session) to trust it.

Even in bypass mode (--dangerously-skip-permissions) Euron Code still asks before: commands that touch existing files outside the project (cat ~/.ssh/id_rsa, rm -rf ~/Documents), a short list of destructive commands (rm -rf /, git push --force, git reset --hard, curl ... | sh, ...), and web requests to your own machine or private networks (localhost, 192.168.x.x, cloud metadata addresses). Edits to EURON.md and .euron/ always ask in acceptEdits mode.

Also: grep never shows the contents of secret-looking files (.env, keys, credentials); commands and hooks never see EURON_API_KEY; transcripts are readable only by you (on macOS/Linux, mode 0600).

It does not run away

The same failing call repeated 3 times makes Euron Code tell the model to change approach, and after 5 the request stops. Each request has a step budget (60 model steps, maxStepsPerPrompt); then it asks whether to continue (-p: exit 6). After a change it reports what changed and what was run (Changed: calc.py | Ran: pytest -q (exit 0) | Not verified: none), asks the model once to check an unverified change, and checks the syntax of edited Python, JSON and JavaScript files.

Licence

Copyright (c) 2026 Euron. All rights reserved. See LICENSE.

Metadata

Release files for euron-code 1.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for euron-code 1.9.2
File Size Uploaded Provenance Actions
euron_code-1.9.2.tar.gz 711.4 kB Without provenance Details for euron_code-1.9.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for euron-code 1.9.2
File Interpreter ABI Platform Actions
euron_code-1.9.2-py3-none-any.whl Python 3 none any Details for euron_code-1.9.2-py3-none-any.whl

Total release size: 1.3 MB

Release files / euron_code-1.9.2.tar.gz

Download URL euron_code-1.9.2.tar.gz
Size 711.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e0d1705fdc5c261a89b4624adfb68c3f7a87913e27eafa59f8c639a325082fbc
BLAKE2b-256 checksum
How to use checksums
3d913db901c7ace617fb6e71658315e5875c58faecc1ae4a337ff201f611b992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / euron_code-1.9.2-py3-none-any.whl

Download URL euron_code-1.9.2-py3-none-any.whl
Size 546.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21958204a3c73d926f8e1f66acd6b51dc4ad5f5c39905c84e628c6415df6e5e2
BLAKE2b-256 checksum
How to use checksums
0fa7f0347e2de74acb3b751b0c446fa8f82cecdeb71948f604f1ccf55a0ff03a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for euron-code 1.9.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.9.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page