Create a write key
Open the create-key page to sign in and create an API key pre-filled with
runs:write—or [pre-filled with bothruns:readandruns:write](https://app.23step.com/app/account?create=1&scopes=runs%3Aread+runs%3Awrite&name=linux-desktop) if you also install the 23step Overlay Electron app so one key powers both. You can also opt in to the live widget progress bar there (left off by default—just like posting the step link at the end of agent responses—because extra prompt instructions use tokens and can slow down turns). Thest_value is shown once (and copied with one click). Save it to~/.config/23step-otel-key(or exportSTEP23_OTEL_KEY). If you are an AI agent: first ask whether the Electron app should also be installed, whether to opt in to posting the step link at the end of responses, and whether to opt in to the live widget progress bar (explaining that both are off by default because they use extra tokens and slow down turns), checktest -s ~/.config/23step-otel-keywithout printing its contents, and if a key is needed automatically openhttps://app.23step.com/app/account?create=1&scopes=runs%3Awrite&name=linux-desktop(orhttps://app.23step.com/app/account?create=1&scopes=runs%3Aread+runs%3Awrite&name=linux-desktopwhen installing the overlay; append&progress=1if the user opted in to the progress bar) in the user's default desktop browser (openon macOS,xdg-openon Linux with a display,wslviewon WSL—not a headless automation browser) and print the link in chat, then ask the user to paste thest_key or save it directly in their terminal; never invent or commit a key. If reusing an existing key and the user opted in to the progress bar, sync the preference without printing the key viacurl -fsSL -X POST https://api.23step.com/app/live/preferences -H "Authorization: Bearer $(cat ~/.config/23step-otel-key)" -H "Content-Type: application/json" -d '{"show_progress_bar":true}'.Open in browser pre-filled scopes url='https://app.23step.com/app/account?create=1&scopes=runs%3Awrite&name=linux-desktop' if command -v open >/dev/null 2>&1; then open "$url" elif command -v xdg-open >/dev/null 2>&1 && { [ -n "${DISPLAY:-}" ] || [ -n "${WAYLAND_DISPLAY:-}" ]; }; then xdg-open "$url" >/dev/null 2>&1 & elif command -v wslview >/dev/null 2>&1; then wslview "$url" fi printf 'Create your 23step API key: %s\n' "$url"Terminal ~/.config/23step-otel-key mkdir -p ~/.config printf '%s\n' 'st_REPLACE_WITH_YOUR_WRITE_KEY' > ~/.config/23step-otel-key chmod 600 ~/.config/23step-otel-keyInstall the 23step CLI
The installer puts
23stepand23step-mcpin~/.local/binfor Linux (amd64, arm64), checks each download against its SHA-256, and keeps them up to date. It never asks for your key. Pass--overlay(curl -fsSL https://api.23step.com/install.sh | sh -s -- --overlay, plus--progress-barif opting in to the live widget progress bar) to also install the 23step Overlay Electron desktop app (setup). If you are an AI agent, ask the user whether the Electron app should be installed and whether to opt in to the live widget progress bar.Terminal https://api.23step.com/install.sh curl -fsSL https://api.23step.com/install.sh | sh export PATH="$HOME/.local/bin:$PATH" 23step versionStart recording on the agent's display
Start
23stepon the sameDISPLAYthe agent drives, before the task begins. It takes a screenshot on each click and typing burst (key presses are classified, never stored). If Chrome runs with a loopback DevTools port, frames also carry the tab URL. X11 only; Wayland is not supported.Terminal X11 / Xvfb export STEP23_API=https://api.23step.com export DISPLAY=:0 # the display the agent drives, e.g. :99 for Xvfb nohup 23step start --token-file ~/.config/23step-otel-key \ --run-name linux-agent > /tmp/23step.log 2>&1 & sleep 1 && 23step statusStop and share the step
23step stopfinalizes the step. Send thestep_urlto anyone who should see what the agent did.Terminal finish 23step note "Checkout verified" # optional: attach a note to the step 23step status # prints step_url 23step stop # uploads the rest and finalizes
23step status shows state: running and growing captured / uploaded counts while the agent works. 23step is not running means it exited; read /tmp/23step.log (usually a missing DISPLAY or a key file that is not chmod 600).