Metadata-Version: 2.4
Name: elench
Version: 0.1.1
Summary: Design, quote and order 3D-printed parts at Elench's print factory, from a shell
Keywords: 3d-printing,manufacturing,cad,mcp,agents
Author: Elench
Author-email: Elench <support@elench.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Manufacturing
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.12
Project-URL: Documentation, https://www.elench.com/connect-ai-agent/
Project-URL: For AI agents, https://www.elench.com/llms.txt
Project-URL: Homepage, https://www.elench.com/
Project-URL: Support, https://www.elench.com/contact-us/
Description-Content-Type: text/markdown

# elench

Design, quote and order 3D-printed parts at [Elench](https://www.elench.com/)'s print factory in
Brooklyn, from a shell.

It is for an AI coding agent that has a shell and no Elench connector, such as Claude Code,
Cursor or Codex. The agent signs you in with a code you confirm in your browser, then designs a
part, quotes it and, when you say so, orders it: the same tools Elench's connector at
`https://api.elench.com/mcp` gives Claude and ChatGPT, with the same account. Parts print in
PETG; you pay by card on Elench's checkout page, and pick them up or have them shipped.

## Use it

Nothing to install with [uv](https://docs.astral.sh/uv/): `uvx elench` runs it. Or
`pipx install elench`, or `pip install elench`. It needs Python 3.12 or later and nothing else.

```bash
uvx elench login          # prints a link and a code; confirm the code in your browser
uvx elench instructions   # how to design, quote and order: an agent reads this first
uvx elench tools          # the tools; `elench tools quote` shows one with its arguments
uvx elench call run_script script=@bracket.py
uvx elench call quote part_id=p-1a2b3c4d5e
```

- **Signing in.** `elench login` prints a link and a code. Open the link, sign in to Elench with
  your email address or Google, and confirm the code, within 5 minutes. With no terminal
  attached, as when an agent runs it, the first call prints the link and the code and returns at
  once with exit status 3, so that the agent can pass them on to you; the next `elench login`
  waits until you have confirmed.
- **Calling a tool.** `elench call TOOL NAME=VALUE ...` prints the tool's answer. A value of
  `@FILE` is the file's text, so a script needs no quoting, `@-` is standard input, and a value
  that reads as JSON (`2`, `true`, `[1, 2]`) is that value. `--json '{...}'` gives all the
  arguments at once. A picture in the answer, such as `snapshot`'s, is saved to a file in a new
  directory only you can read, or in `--out DIR`, and its path is printed.
- **Ordering.** Nothing is ordered until you tell your agent to, after seeing the price. An
  order answers with a link to Elench's checkout page, where you pay.

## What it keeps

The sign-in is kept in `~/.config/elench/credentials.json`, which only you can read.
`elench logout` removes it and ends the sign-in. `elench whoami` shows which account is signed
in. The command sends nothing anywhere but to Elench's service and its sign-in server.

## For agents

Run `elench instructions` before the first script, and follow it. Never guess a tool's
arguments: `elench tools NAME` shows them. `elench call docs --json '{"keys": ["SKILL"]}'` reads
the design guide. If your user also wants Elench in later sessions without this command, add
the connector `https://api.elench.com/mcp` to their app; https://www.elench.com/llms.txt says
how.

Questions: support@elench.com.
