Tutorials / AI agents

Command line

The same engine runs without the window: for scripts, CI and machines without the app.

Build from source

Get the tools

The app bundles the engine (lynkeid) and the MCP server (lynkei-mcp) in Lynkei.app/Contents/Helpers. The lynkei command-line tool is built from source with Rust:

Terminal
git clone https://github.com/jaintvn/lynkei.git && cd lynkei/core
cargo build --release -p lynkeid -p lynkei-cli

Everyday commands

Terminal
./target/release/lynkeid                        # proxy on 127.0.0.1:8888 + control API
./target/release/lynkei status
./target/release/lynkei search status:5xx host:api.acme.com 'duration:>800ms'
./target/release/lynkei tail -state:tunneled    # live events
./target/release/lynkei devices connect <id>
./target/release/lynkei devices proxy <id> off
./target/release/lynkei search --json > build.jsonl
./target/release/lynkei compare before.jsonl after.jsonl
./target/release/lynkei throttle 3g
./target/release/lynkei breakpoints wait
./target/release/lynkei system-proxy on         # restored on exit or crash

When the app is open, the command line attaches to the app's engine, so both see the same traffic. lynkeid launch-agent --write keeps a headless engine running with launchd.

Gate a build on API changes

Record each build's flow with lynkei search --json > build.jsonl, then run lynkei compare. It exits with code 2 when something is breaking. See Compare two builds.