On the machine
What the es-python installer leaves on your computer besides the runtime: the on-machine manual, the build records, the eyalsec helper command, and a context file for AI coding assistants.
The EyalSec home folder
Every es-python install for this user creates ~/.eyalsec/ in your home directory. It holds documentation and records only; the runtime itself lives under ~/opt/ (see Where it is installed). An all-users install keeps the records in /etc/eyalsec/builds/ and the manual and AGENTS.md in /usr/local/share/eyalsec/.
| Path | What it is |
|---|---|
~/.eyalsec/manual/ |
a short manual for es-python, readable offline |
~/.eyalsec/AGENTS.md |
a context file for AI coding assistants |
~/.eyalsec/builds/<name>.json |
one record per installed build |
Each runtime also has a small settings file at ~/opt/eyalsec…/etc/eyalsec.conf (/opt/eyalsec…/etc/eyalsec.conf for an all-users install), which records the EyalSec address the machine reports to and the site-packages directories it shares with your regular Python. The installer writes it, and you do not need to edit it. To keep extra context off on that machine whatever the dashboard says, you can add report_cmdline=off, report_env=off, report_code=off or report_inventory=off on lines of their own; reinstalling and updating keep them.
The eyalsec helper command
The installer also puts a small eyalsec command in ~/.local/bin (/usr/local/bin for an all-users install). It works with the files listed on this page. Apart from install-as and uninstall, it never changes how es-python is installed, and it never changes your machine's settings on the dashboard.
| Command | What it does |
|---|---|
eyalsec selftest |
send a harmless test event and check that your dashboard received it |
eyalsec info |
list every es-python build installed for your user and for all users |
eyalsec install-as <mode> |
change the install mode |
eyalsec manual |
show where the on-machine manual is and list its pages |
eyalsec agents-init |
make the AI assistant context available in the current project |
eyalsec uninstall |
remove es-python from this computer and put python and python3 back as they were |
eyalsec help |
list these commands |
eyalsec selftest
eyalsec selftest checks the whole path from this machine to your dashboard in about a second. It runs a tiny test program with es-python that passes a harmless text value from an environment variable to eval(), waits up to 20 seconds for the dashboard to confirm it stored the event, and prints:
✓ Your dashboard received a test event: open https://eyalsec.com/scanner/events?view=python
On the Events page the result shows as a Test event row with Info severity. It is not a finding, it is left out of the dashboard's statistics, and your rules and sanitization settings never hide it. It does count as an event toward your monthly limit.
It uses the most recently installed build. To test another one, name its launcher or version: eyalsec selftest --python es-python3.12.
When no confirmation arrives it says so, exits with a non-zero status and lists the likely reasons:
- the machine cannot reach your EyalSec address (a firewall or proxy blocks it);
- the env source is switched Off for this machine or your account on the dashboard, which wins over the test (see Taint sources);
- your account is paused (a payment did not go through, or nothing pays for the machine yet) or the month reached your spend limit;
- the machine was reinstalled or deleted on the dashboard, so this copy is no longer accepted. Run the install command from the Machines page again.
The test program runs from a temporary folder that is removed afterwards. Running it adds no source to your machine's settings: your own programs report only what the sources you switched on allow.
eyalsec info
eyalsec info prints one block per installed build, read from ~/.eyalsec/builds/ (this user) and /etc/eyalsec/builds/ (all users), and labels each block with which one it is. Each block shows the install folder name, the Python version, the launcher command (for example es-python3.13), where it is installed, the EyalSec server it reports to, the build string, the install mode and when it was installed.
Use it to check which versions are on a computer, or which server a build talks to when you are troubleshooting.
eyalsec manual
eyalsec manual prints the manual's location and lists its pages. The pages are plain Markdown files; open them with any text viewer, for example less ~/.eyalsec/manual/10-using-es-python.md. This online guide covers the same ground in more detail.
Change the install mode
eyalsec install-as <mode> changes how es-python is installed on this host, without reinstalling it. The modes match the dashboard's Install as choices:
| Mode | Install as |
|---|---|
local |
Add es-python (this user) |
local-python |
Replace python with es-python (this user) |
global |
Add es-python (all users, needs sudo) |
global-python |
Replace python with es-python (all users, needs sudo) |
eyalsec install-as local-python
sudo ~/.local/bin/eyalsec install-as global
A change that involves all users needs sudo. Under sudo, give the helper's full path (~/.local/bin/eyalsec or /usr/local/bin/eyalsec): sudo may not search either folder.
Nothing is downloaded, and the machine keeps its name, settings and events. The dashboard's Install as follows on its own. If the host cannot reach EyalSec, install-as says so and the change on the host stands; set Install as to the same mode in the Install panel before you next reinstall.
Adding or removing the python links is instant. Moving between this user and all users copies the runtime to its new place, then removes the old copy. If anything fails before that, install-as says why and leaves the old install as it was; reinstalling in the new mode always works. Because the old copy is removed, restart programs still running es-python, and point any service or cron job that names the old path (for example /home/you/.local/bin/es-python) at the new one (/usr/local/bin/es-python).
install-as changes one build at a time: when several versions are installed, --python 3.12 picks one; without it, the most recently installed is used. On an install made before this command existed, eyalsec answers "unknown command 'install-as'" (or says the install predates it); reinstall it from the dashboard first.
Running eyalsec install-as with sudo gives it full administrator rights, so allowing someone to run only that command through sudo is the same as giving them administrator access.
AI coding assistants
~/.eyalsec/AGENTS.md (/usr/local/share/eyalsec/AGENTS.md for an all-users install) explains es-python to an AI coding assistant (Claude Code, Cursor, Codex and similar): what es-python is, that it should run your code with it, and how packages work. With it loaded, the assistant does not "fix" a problem by switching back to plain python.
To load it into a project, run this in the project's top folder:
cd ~/src/my-project
eyalsec agents-init
What it does depends on what the project already has:
- If the project has an
AGENTS.mdorCLAUDE.mdfile, it adds one line,@/home/you/.eyalsec/AGENTS.md, to the end of it. Running it again does nothing. - Otherwise it creates
AGENTS.mdin the project as a link to~/.eyalsec/AGENTS.md, so it stays current when you reinstall.
es-python -h also prints these paths at the end of its help text.
Uninstalling
There are two ways to remove es-python from a computer:
- run
eyalsec uninstallon the computer itself, which needs no network and no dashboard; - or choose Uninstall on the dashboard, which gives you a one-line command that also deletes the machine and its events from your dashboard; see Uninstall.
Both remove the same things from the computer.
eyalsec uninstall
eyalsec uninstall # your copy
sudo ~/.local/bin/eyalsec uninstall # every user's copy, and the all-users install
sudo /usr/local/bin/eyalsec uninstall # the same, from an all-users install
Without sudo it removes your own copy. If es-python is also installed for all users, it says so and prints the commands that remove that copy.
With sudo it removes es-python from the whole computer: the all-users install, your copy, and the copy of every other account that has one. Each account's copy is removed as that account. Under sudo, give the helper's full path, as above: sudo may not search ~/.local/bin or /usr/local/bin.
It says what it is about to remove and asks before it starts. Add --yes to skip the question, for example in a script; without a terminal to ask at, it removes nothing unless --yes is given.
The machine and its events stay on your dashboard. Delete the machine there if you no longer need them (see Delete).
What it removes
Either way, the uninstall removes:
- every es-python runtime under
~/opt/eyalsec*, including other Python versions installed for other machines on the same computer, - the
es-python*andeyalseccommands in~/.local/bin, pythonandpython3links in~/.local/binthat point at es-python,- the whole
~/.eyalsec/folder, - the
PATHline the installer added to~/.bashrc,~/.zshrcor fish'sconf.d, so those files are as they were, - the
~/opt,~/.local/binand~/.localfolders, if nothing else is left in them.
python and python3 go back to what they were. When a Replace python with es-python install found a python or python3 already there (a program, or a link to another Python), it kept it aside as python.bak or python3.bak; the uninstall puts it back under its own name.
For an all-users install, run the uninstall with sudo. It also removes the es-python runtimes installed for all users, the es-python commands, eyalsec and EyalSec python/python3 links in /usr/local/bin (putting back the python and python3 that were there), /etc/eyalsec/ and /usr/local/share/eyalsec/. Without sudo it removes this user's copy and prints the commands to remove the all-users copy.
It does not touch your projects, your regular Python (/usr/bin/python3, and any python or python3 that is not an EyalSec link), or packages you installed into ~/.local with pip; those are shared with your regular Python and stay usable by it.
What is left behind
Anything eyalsec agents-init added to a project stays there after an uninstall. The AGENTS.md link becomes a broken link, and the @…/.eyalsec/AGENTS.md line in an existing file points at a file that no longer exists. Remove them by hand if you no longer want them.
Virtual environments you created with es-python also stop working, because the runtime they point to is gone. Recreate them with your regular Python.
After uninstalling, open a new terminal (or run hash -r) so your shell stops looking for es-python.