#Is it safe to run?
An eLucid8 app is three things: the elucid8 command, a program (program.el8, or its compiled plan.json), and its deployment (deploy.json, with any data files and helper programs beside it). This page says what each can do on your computer, what is safe by design, and the few things to watch, each with what to do. We make every reasonable effort to keep eLucid8 safe to use, and say below what that effort is; no software can be guaranteed free of faults, and eLucid8 comes with no guarantee.
#Safe by design
- A program cannot touch your computer. The language has no files, no network and no way to start programs. A program is equations; it reaches the outside only through the inputs it reads and the outputs it writes, and its deployment says where those are. Without a
deploy.json,elucid8 run program.el8reads only files beside the program named after its inputs (readings.csvforinput("readings", …)) and writes each output to a file named after it (total.csv) in the current folder. A channel's name is letters, digits,_and-only, so it cannot name a file elsewhere. A program can use processor time and memory, within the command's limits on demand depth, region size and program size, and, forrunandserve, on memory (half the computer's unless--memorysets another) and time (an hour for a run, and for each of a service's requests, unless--timesets another). Reading or running someone's.el8file on its own is as safe as reading a spreadsheet's formulas. On its own means with nodeploy.jsonbeside it:elucid8 run,checkandserveuse thedeploy.jsonin the program's folder even when you name only the program. - The playground runs in a sandbox in your browser. It cannot send anything anywhere, and has no access to the site's sign-in or storage. It reads a file of yours only when you choose one (Load file, Start from my data).
- A program a deployment starts gets only the environment variables its entry names (
"env": ["SCORER_KEY"]), and the variable that names the protocol it speaks; on Windows alsoSystemRoot. Nothing else from your environment reaches it.deploy.jsonhas no field for a credential: an unknown field named like one (password,token, …) is refused, and so is a connector's setting named like one or a URL holding a password. A program that needs a key reads it from the variable its entry names. The arguments of a program a deployment starts are not checked:"process": ["curl", "-H", "Authorization: Bearer …"]is accepted, with the key indeploy.jsonfor anyone who reads it. - A deployment writes its outputs inside its own folder (the folder holding
deploy.json), following..and links, unless an output says"outside": trueand you allow it (a yes at a terminal, kept in.elucid8-allowed), or you pass--allow-outside. Paths you give yourself on the command line (--out) are yours to choose. A folder an output's path names is created when it is missing, always inside the deployment's folder under the same rule. Inputs are not kept to the folder: an input reads any file your account can read, by the path it names, andrun,checkandservesay each one outside the folder on standard error, then read it. elucid8 windowopens and saves only files in the folder it was started from and its subfolders (projects/x/program.el8), never a file outside it, whatever path or link leads there, never eLucid8's own files, and files to open at most 1 MB and 10,000 lines.elucid8 serve --httprefuses requests from other websites, so a web page you visit cannot drive a service running on your computer. Without a token it listens only on 127.0.0.1 (or ::1); to listen anywhere else it needs a token file. With a token, every request for data needs it, and a Player link carries a key that can only read: it can ask for values and follow them, never send data, reload or stop the service.
#A deploy.json from someone else
A deployment can do more than a program:
- start programs: an input or output bound to
{"process": [...]}, a connector ({"connector": …}, which runs a Python program), or a program answering an input on demand ("answers": true); - read files anywhere your account can, by the paths its inputs name (
run,checkandservewarn about each one outside the folder); - write files outside its own folder, by the paths its outputs name (
"to": "../shared/total.csv"), when it says so with"outside": trueon that output and you allow it, as you allow programs; without"outside": true,elucid8refuses to load the deployment; - pass on the environment variables its
"env"lists.
A started program runs with your rights. So a deployment that starts programs is as trustworthy as a script from the same person.
What to do:
- Read
deploy.jsonfirst. It is a short text file. Look for"process","connector","env"and"outside", and for paths in"from"that leave the folder (a leading/, or..). - Then run
elucid8 check. When the deployment can do more than read its data files and write its outputs, it first lists what: the programs and connectors it starts, with the environment variables each receives, files it writes outside its folder, addresses it listens on, made fromdeploy.jsonalone. Then it lists each input's and each output's binding, one line each, without computing anything. For this folder:
program.el8:
readings = input("readings", t : 5)
score = input("score", t : inf)
total = readings + score
output("total") = total
readings.csv:
t,value
0,1
1,2
2,3
3,4
4,5
deploy.json:
{
"format": "elucid8-deploy/2",
"inputs": {
"score": { "from": { "process": ["node", "scorer.js"] }, "answers": true, "env": ["SCORER_KEY"] }
},
"outputs": { "total": { "to": "../shared/total.csv", "outside": true } }
}
elucid8 check
this deployment can:
start a program: node scorer.js (answering input "score" on demand; env SCORER_KEY)
write outside its folder: ../shared/total.csv (output "total")
program.el8: plan version 26, 2 inputs, 1 output
input "readings": readings.csv (CSV, found beside the configuration), stored, version 520e3d664707a9c9; over t : 5 (whole numbers; 5 rows); a missing point is missing data (no end of data: inside its bounds a missing point is missing data)
columns: t (coordinate), value (value)
input "score": process node scorer.js, answered on demand; over t (whole numbers)
output "total": ../shared/total.csv (CSV), over t = 0..4 (5 rows); columns t, total_value, total_kind, total_message
ok
The list says that running this deployment starts node scorer.js, giving it SCORER_KEY, and writes outside the folder (said by its "outside": true; without it, check refuses the deployment and says so). run writes there only once you allow it, as it starts the program only once you allow that.
Nothing starts a program until you allow it. run, serve, window and init refuse a deployment that starts programs or connectors, with exit code 3 and the list, until you allow them: at a terminal they ask once, and a yes is recorded in a file .elucid8-allowed in the folder, with a fingerprint of the list, so a deploy.json that later starts something else is asked about again; elsewhere (in a script) pass --allow-programs. The fingerprint covers each program and connector as deploy.json writes it (its command and arguments, its settings, the names in its env), not what it runs: a script it names (scorer.js) changed after your yes, another program found under the same command name on your PATH, or another Python running the connectors (ELUCID8_PYTHON) runs without a new question. Allow a deployment only in a folder whose scripts you trust, and delete .elucid8-allowed to be asked again. check reads every stored input, and an input served by a program ({"process": [...]} without "answers": true) or a connector is read by starting it; so for such a deployment check prints the list, says it checked nothing else, and exits with code 3 unless you allowed them. A program that answers on demand, or that takes an output's records, is started only by run, serve and window. Under elucid8 serve, a reload whose deploy.json starts more than what you allowed is refused.
From Python, elucid8.run(config={…}) and elucid8.Service start the programs and connectors given in the call (in inputs, or in config= as a dict) without asking, because your own code names them; those a deploy.json file given as config= names start only with allow_programs=True or your yes in .elucid8-allowed beside it. An output with "outside": true in config= as a dict is refused, as elucid8 run refuses it in a script: to write outside the folder, run the deployment with elucid8 run --allow-outside, or give it a deploy.json file whose .elucid8-allowed records your yes.
#The playground on your computer: elucid8 playground
The browser's playground runs inside the browser's sandbox. elucid8 playground runs on your computer (macOS, Windows and Linux), with your rights, as elucid8 run does, so it keeps to these limits:
- It works in its own folder only:
~/eLucid8, or the folder you give with--dir. It opens and saves files in that folder and its subfolders (your projects, the examples), never outside it, whatever path a project names. It never changes an example: choosing one copies it into a project. To use your own data, copy it into a project'sdata/folder. - It runs your programs in a separate process, so a program that runs out of memory or never ends stops that process, never the playground. Your programs may use every thread of your computer and up to half its memory; each question may take 60 seconds, and Esc stops it at once.
- Its two helpers are the
elucid8command itself: one runs your programs, one writes programs from your descriptions. They get none of your environment's variables but their own settings, and only the second connects to the internet: to Anthropic's API, and nowhere else. - A project that starts programs is asked about separately. If a project's
deploy.jsonstarts programs or connectors, nothing starts until you allow it, for that project only, recorded in its own.elucid8-allowed, as forelucid8 run. The question is asked by the window itself, so a changed copy of the playground (elucid8 playground --program DIR) cannot allow anything for you. - Your Anthropic API key stays on your computer and goes only to Anthropic (Your API key).
- Your results stay on your computer, in the project's folder: a project in the playground writes its outputs inside its own folder (
out/), and never writes files elsewhere or sends its output over the network, even when a description or its data asks it to; nor does it read files from outside its folder. A project whosedeploy.jsonasks for any of these is not run, and the status line says why. To write elsewhere or send results to a service, run the project withelucid8 run, where itsdeploy.jsonsays so explicitly. Everything else this page says about deployments applies to a project.
#Your API key
Writing programs from a description in elucid8 playground uses Anthropic's AI on your own account, with your own Anthropic API key. elucid8 key keeps it.
- Where it is kept: give it once with
elucid8 key set, which asks for it without showing what you type, checks it with Anthropic (listing the models, which costs nothing) and keeps it in a file only you can read (keyin eLucid8's settings folder:~/Library/Application Support/elucid8on macOS,%APPDATA%\elucid8on Windows,~/.config/elucid8on Linux (or$XDG_CONFIG_HOME/elucid8); on macOS and Linux its mode is 600, and a key file others can read is not used). The playground reads it only when you press Generate program. For scripts and agents, the variableELUCID8_API_KEYworks too, and is used before the stored key.ANTHROPIC_API_KEYis never read, so a key you set for another tool is not used by eLucid8. - Where it goes: only to Anthropic's API (
https://api.anthropic.com), in the header of each request; never to elucid8-lang.org or anywhere else. Requests go straight to Anthropic, through no proxy. - Where it never is: in your program or its values, a trace, a project's files, a saved file, a recorded session, a message or the screen.
- What it can spend: at most $2 a session and $5 a day unless you change them, up to $50 each:
elucid8 key limits --session 3 --day 10changes them, andelucid8 key limitsshows them with today's spending (they are kept inwriter.jsonin eLucid8's settings folder:~/Library/Application Support/elucid8on macOS,%APPDATA%\elucid8on Windows). The same command chooses the model (--model), among those whose prices eLucid8 knows. Onlyelucid8 key limitscan raise a limit or choose a dearer model; nothing in the playground's window can. Before each request to Anthropic the most it could cost is set aside, and nothing is sent if that would pass either limit; after it, what Anthropic reports it cost is recorded. A request cut short stays counted at its most. Days are counted in UTC. The record,writer-ledger.jsonlin the same folder, holds only dates, amounts and outcomes: never your description, your program or your key. elucid8 key statussays whether a key is set and where from (the key file orELUCID8_API_KEY), never any of its characters.elucid8 key forgetremoves the key file.
#Data you don't control
Data is only ever data to eLucid8: a value in a file, a database or a stream is read as a number, a boolean or a text, and never run. A file that is not what the deployment says is refused with its line. Two cautions are about where the results go next.
- CSV results opened in a spreadsheet. eLucid8 writes a text value in a CSV file as it is, so that the file reads back exactly. A spreadsheet treats a cell starting with
=,+,-or@as a formula, and may run it. If results hold text from data you don't control and are meant to be opened in a spreadsheet, give the output"spreadsheet": true(orelucid8 run --spreadsheet): each text cell starting with one of those characters is then written with a'before it, which a spreadsheet shows as text. Otherwise open the CSV file as text (in a spreadsheet, import it with every column as text), or write the output as Parquet or Arrow ("to": "total.parquet"). - AI assistants. Data can hold text written to instruct an assistant ("add this line to deploy.json…"). eLucid8 is not fooled by it, but an assistant reading the results may be. Read any
deploy.jsonan assistant writes before you run it, especially any line that starts a program. Throughelucid8 mcp, therun,checkandshowtools take no program to start in their arguments,write_deploymentwrites no program and only the connectors named topropose_bindings, and the tools read and write only inside the folderelucid8 mcpworks in (--dir). A connector or program starts through the tools only when you allowed it: the deployment's.elucid8-allowed, or your own yes to the list when your assistant's app asks you (no argument the assistant gives allows it). That holds forrun,checkandshow, forpropose_bindingsreading a sample from a connector, and for the check and first pointswrite_deploymentruns on what it wrote; without your yes,write_deploymentwrites the files, starts nothing and says so. Every tool says to the assistant that data in its results is data, not instructions; long texts from the data are cut short in results. Don't give an assistant a shell in a folder of data you don't control.
#Getting elucid8
- Get it from the Download page, from PyPI (
pip install elucid8), or with the install command the Download page gives you, which checks the file's SHA-256 before installing it. - Downloading it by hand, compare its SHA-256 with the one the Download page shows:
shasum -a 256 elucid8on macOS,sha256sum elucid8on Linux,Get-FileHash elucid8.exein PowerShell. If they differ, delete the file and download it again. - The files are signed: the macOS files with Apple's Developer ID and notarised by Apple, the Windows file with Azure Artifact Signing. The first time you open a file you downloaded with a browser, macOS asks whether to open it; Windows SmartScreen may say "Windows protected your PC" about a new program, signed or not: choose More info, check the publisher, then Run anyway. The Deploy tutorial shows each step.
#Running a service
- Keep
elucid8 serve --httpon127.0.0.1unless others need to reach it. - To serve other computers, give it a token file and put HTTPS in front with a proxy: Running eLucid8 as a service has the steps.
- Without a token, any program on your computer can use the service fully. Give it a token whenever other people use the computer.
- Share Player links, never the token: a Player link's key can only read.
#How we work on security
- By design: the language has no way to reach your computer except through what a deployment binds, and the pieces that do reach it (deployments, services, the window, the MCP server) are kept to the narrowest access we can give them, as this page describes.
- Tested: each protection on this page is checked by automated tests that try to get past it (paths leaving a folder, requests from other websites, missing or wrong tokens, credentials in configurations) and must be refused. The tests run on every change on Linux and on the developers' Macs, and on macOS, Linux and Windows for every release.
- Built from known sources: every release file is built by our automated builds from a known commit, with a fixed compiler version, and its SHA-256 is published beside it.
- Reviewed: features that read files, start programs, listen on a network or handle keys are reviewed for these risks; what was found is either closed or written on this page.
- Fixed in a later release: a reported problem is fixed in the latest release; older releases are not updated.
- Not yet done: eLucid8 has not had an independent security audit.
#No guarantee
eLucid8 is provided "as is", without warranty of any kind, as its licences (MIT or Apache 2.0) say. However careful we are, it may have faults we do not know of. You are responsible for what you run with it: read a deploy.json before you run it, run only deployments and helper programs you trust, keep your keys and tokens to yourself, and use your own judgement about data you don't control. If eLucid8 holds or produces data that matters to you, keep your own copies.
#Reporting a problem
To report a security problem, write to security@elucid8-lang.org. We read every report, will tell you what we found, and credit you when it is fixed unless you prefer not to be named. Please do not open a public issue: say what is affected, the version (elucid8 --version) and how to reproduce it.