04 Releases
Changelog
Every release is tagged on GitHub and published to PyPI. SageCode follows semantic versioning.
Settings no longer pin the server
Fixed
- Saving a setting (your shell, your workspace) also saved the Autosage server address, which then overrode the address in every later install, so sagex could keep talking to an old or local server after an upgrade. Only settings you changed are saved now.
sagex auth loginandauth statussay which server you're using whenever it isn't the built-in one.
Meet Sage
Sage is your Autosage assistant in the terminal app. Type a question without ! and Sage answers, looks things up, and with your approval changes things for you: it runs sagex commands, writes and edits files in your workspace and runs shell commands. Conversations are saved, you can bring your own model, and you can see what you've used. See Ask Sage.
Sage
- Type a question (no
!) and the reply streams into the transcript. Esc stops it. Your next question carries the end of the last command's output, with obvious secrets masked, so "why did that fail?" just works. - Sage looks things up by itself with read-only commands (
list,show,render,trigger invoke,syntax,workspace show) and any command's help. Every call shows as a card with the exact command and its output. - Changes need your say-so: each appears as an approval card with a one-line description and the exact command. y runs it once, a allows that command on that resource for the session, n declines. Deletes always ask. A workflow run draws its live graph inside the card.
/permissionslists what you've allowed and/permissions revoke <n>(orrevoke all) takes it back.- Files in your workspace: Sage reads, writes (showing the new file or a diff first), edits just the lines that need changing, and deletes (always asks). Never outside the workspace, never files that usually hold secrets.
- Shell commands in your current shell, each one approved. Sage can't type into prompts, see your SageCode key or print environment variables; risky commands always ask, with a warning.
- Works with models that don't support tool calling: calls written out as text run like normal ones, behind the same approval cards.
Conversations
- Conversations are saved.
/sessionslists them,/sessions <n>reopens one with Sage remembering it,/sessions delete <n>deletes one, and/newstarts fresh. A dropped connection picks the same conversation back up. Your latest 100 are kept, and your files' contents aren't stored. - Long conversations stay fast: older tool output is shortened, and Sage summarizes the older part of a long conversation and carries on from the summary.
Your own model
sagex create model "<name>" --provider <provider> --model <model id>adds a model with your own provider API key: Gemini, Groq, OpenRouter, Anthropic, OpenAI, Azure OpenAI, NVIDIA NIM or any LiteLLM-compatible endpoint. The key is typed at a hidden prompt or read from--key-file, never a flag, and it's stored encrypted and never shown again.sagex use model <name>(or--free) picks what Sage answers with;list,show,update,renameanddelete modelmanage them. In the terminal app,/modellists and switches. The same models and choice apply to Autobot on the web.
Usage
- A "Sage Today" block in the left panel shows today's requests and tokens, the model in use and the free requests left, and says when your own model failed and Sage fell back to the free models.
/usageadds the last 7 days and all time, requests per day, models and devices, with a link to the Agent Dashboard on the web, which now has a SageCode tab.
Changed
- The workspace is the one place for local resources: every relative path a command takes starts from the workspace, never the folder you're in. The terminal app opens in the workspace, and Sage works only there.
Security
- Sage's replies can't control your terminal: escape sequences and text-direction tricks are removed before anything is shown.
- Only web and
mailtolinks in replies are clickable, and a link whose text names one site but points to another shows where it really goes. - Commands that sign in, take a secret or print one (
auth, vault keys, model keys, trigger secrets,--reveal) are never available to Sage.
Fixed
push script <name>could upload a same-named file from the current folder instead of the one in your workspace. It now looks only in the workspace and prints the file it used.- "No value for 'NAME'" now says it's the script's
{{NAME}}input with no default.
Open to everyone, with sessions on your profile
No invite needed: sign in with your Autosage account through your browser. Every sign-in is a session you can see and revoke on your Autosage profile.
Added
sagex auth loginsigns in through your browser: it shows a one-time code, you check it matches and approve. Works over SSH too: open the link on any device (--no-browserjust prints it).sagex auth login --with-tokenfor CI and scripts: pipe in an access token created on your Autosage profile.sagex auth statusshows the account, the session and its activity.- Your Autosage profile lists every SageCode session (device, system, version, last active, commands run, runs started) and can revoke any of them.
- A security email when SageCode signs in on a new device.
Changed
sagex auth logoutalso signs the session out on the server (access tokens keep working, as CI may share them). Signing in again replaces the machine's previous session.- Sessions unused for 90 days expire. When a session stops working, SageCode says why: expired, signed out or revoked.
Fixed
- The terminal app's header reads "sagex", and its welcome banner wraps on narrow terminals.
The first public release
Everything the Autosage web app does, from your terminal. Install it with uv tool install sagex-cli, or see Install.
Terminal app
- Full-screen app (
sagex): a resources tree (workflows, scripts, vault, recent runs with status, triggers) beside a terminal-style transcript. - Run any shell or
sagexcommand with!, with live output, Esc to stop and ↑ ↓ history. Workflow runs draw a live node graph. - Switch between server resources and a local workspace folder (F3), cycle shells (F2) and refresh (F5).
Commands
auth: log in with an API key stored in your OS keychain;statusandlogout.listandshow: workflows, scripts, runs (with--logs), triggers, vaults, servers and keys, with--jsonoutput.render workflow: draw a workflow as a flow tree, from the server or a local file.run scriptandrun workflow: run now and follow live.Ctrl+Cstops; logs are saved to the workspace.trigger: create HTTP and schedule triggers,fire,poll,watchthe next scheduled run, aninvokecheat sheet,enable/disable, andregeneratesecrets.new,pushandcopy: scaffold, upload and download workflows and scripts; copy run logs.create,update,renameanddelete: vaults, servers and keys, plus workflows, scripts and triggers where they apply.syntax: copy-paste JSON snippets for workflow nodes and edges.
Security
- Secrets are never accepted as flags or written to disk. They're typed at hidden prompts or read from a file you choose.
- Crash reports never include local variables, so a key can't leak into a traceback.
Configuration
SAGEX_API_KEY(a key without the keychain, for CI),SAGEX_API_URLandSAGEX_DEBUG.