04 Releases

Changelog

Every release is tagged on GitHub and published to PyPI. SageCode follows semantic versioning.

v2.0.1live

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 login and auth status say which server you're using whenever it isn't the built-in one.

Release on GitHub · sagex-cli 2.0.1 on PyPI

v2.0.0shipped

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.
  • /permissions lists what you've allowed and /permissions revoke <n> (or revoke 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. /sessions lists them, /sessions <n> reopens one with Sage remembering it, /sessions delete <n> deletes one, and /new starts 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, rename and delete model manage them. In the terminal app, /model lists 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.
  • /usage adds 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 mailto links 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.

Release on GitHub · sagex-cli 2.0.0 on PyPI

v1.1.0shipped

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 login signs 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-browser just prints it).
  • sagex auth login --with-token for CI and scripts: pipe in an access token created on your Autosage profile.
  • sagex auth status shows 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 logout also 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.

Release on GitHub · sagex-cli 1.1.0 on PyPI

v1.0.0shipped

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 sagex command 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; status and logout.
  • list and show: workflows, scripts, runs (with --logs), triggers, vaults, servers and keys, with --json output.
  • render workflow: draw a workflow as a flow tree, from the server or a local file.
  • run script and run workflow: run now and follow live. Ctrl+C stops; logs are saved to the workspace.
  • trigger: create HTTP and schedule triggers, fire, poll, watch the next scheduled run, an invoke cheat sheet, enable / disable, and regenerate secrets.
  • new, push and copy: scaffold, upload and download workflows and scripts; copy run logs.
  • create, update, rename and delete: 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_URL and SAGEX_DEBUG.

Release on GitHub · sagex-cli 1.0.0 on PyPI