Ren

CLI commands

The ren CLI has a command for each operation of the Ren API, plus commands to sign in, upgrade and manage infrastructure as code. To install it and sign in, see CLI.

Syntax

ren <group> [<subgroup>] <action> [<resource>] [flags]
ren space get engineering
ren space member list engineering
ren task comment add ENG-12 --body "On it"

Global options

These flags work with every command, before or after it.

OptionWhat it does
--output json, --output prettyChooses the format. Without it, ren prints readable text in a terminal and JSON when you pipe or redirect it
--help, -hShows the actions, arguments and flags at that level. It works without signing in
--version, -vPrints the CLI’s version, such as ren v0.2.0
--completions <shell>Prints a completion script for bash, zsh, fish or powershell

For example, to add completions to zsh:

ren --completions zsh > "${fpath[1]}/_ren"

Environment variables

VariableWhat it does
REN_URLThe Ren server to call. The default is https://api.useren.ai. Each server needs its own ren login
REN_TOKENA bearer token that ren sends instead of the one ren login saved
REN_NO_UPDATE_CHECKSet to 1 to skip the daily check for a newer release
XDG_CONFIG_HOMEren keeps its sign-in in $XDG_CONFIG_HOME/ren. Without it, the folder is ~/.config/ren

Input

Most commands take the resource they act on as an argument, and a flag for each field.

ren task create --space engineering --title "Fix the build" --agent implementer --labels ci,urgent
ValueHow to pass it
A resourceIts slug or its ID, wherever help says “slug or ID”, such as --space or --agent
A taskIts number, such as ENG-12, or its ID
A listValues separated by commas, as in --labels ci,urgent
A choiceOne of the values help lists, such as todo for --status

For nested fields or long text, pass the request body as JSON with --input: inline, from a file with @file, or from stdin with @-. Flags override the same field in --input.

ren task create --space engineering --input @task.json
task.json
{
  "title": "Fix the build",
  "description": "The test job fails on main since the last dependency update.",
  "priority": "high"
}

Unlike flags, --input uses the API’s own field names and takes IDs, not slugs: spaceId with a spc_… value, not --space engineering. The OpenAPI document has each operation’s field names.

Pagination

A list command returns one page. Choose it with --page and --page-size, at most 100 per page.

ren task list --space engineering --status todo --page-size 2
Output
ID                              TITLE              STATUS  CREATED AT
tsk_01JZ9A4C8E2F6G0H3J5K7M9N1P  Fix the build      todo    2026-11-20T09:14:00.000Z
tsk_01JZ9A5D9F3G7H1J4K6M8N0P2Q  Update the README  todo    2026-11-21T10:02:00.000Z

Page 1 of 3, 5 total. Next: --page 2

In JSON, ren prints the API’s response unchanged. For the shape of a page, see Pagination.

Command groups

These commands come with the CLI:

CommandWhat it does
ren loginSigns you in to an organization. --no-browser prints the sign-in link instead of opening it
ren logoutSigns you out and revokes the CLI’s access
ren whoamiShows your email and organization
ren upgradeInstalls the latest release, or the one you name
ren healthShows the server’s status and version. It needs no sign-in
ren infraValidates, plans, applies and pulls a .ren folder. See Plan and apply

The other groups each manage one kind of resource through the Ren API:

GroupWhat it manages
spaceSpaces, their members, join requests, agents, settings and invite links
agentAgents, and moving an agent to another space
taskTasks: assign, start, review and finish them, with comments, activity and pull requests
labelTask labels
viewSaved views
sessionChats: list, read and archive them, with their cost, links and pull requests
scheduleAutomations on a schedule: pause, resume, run now and read their runs
webhookAutomations that start from a webhook: URL, signing secret, test and replay
webhook-requestThe requests that reached a webhook
artifactArtifacts
appApps, their profiles and skills, and the app registry
credentialSecrets and profiles: create, rotate, move, copy and remove them, and sign in to an MCP
oauthYour organization’s own OAuth clients for apps, and app sign-ins in progress
mcpReads a remote MCP server’s sign-in and tools before you add it
environmentMachines: their saved settings, builds and providers
channelChannels: installs for Slack, Linear and GitHub, and the space each place works in
memoryMemory files
driveDownloads a Drive file
filesLists, reads and deletes Drive and memory files
repositoryThe repositories Ren can read on each git host
inferenceModel providers and inference keys. setup and sync are on Inference setup
orgThe organization’s settings
organizationThe organization’s invite links
billingThe plan, credit and invoices, and the billing portal
feedbackSends feedback to the people who build Ren

Examples

Give a task to the implementer, then comment on it:

ren task create --space engineering --title "Fix the build" --agent implementer
ren task comment add ENG-12 --body "The failing job is test-unit."

Print the number and title of each task in progress:

ren task list --space engineering --status in_progress | jq -r '.items[] | "\(.identifier) \(.title)"'

Exit codes

CodeMeaning
0The command succeeded
1The command failed: the API refused it, the input was invalid or ren could not reach the server
2Usage error: an unknown command or flag, or a missing argument
130You pressed Ctrl+C

Errors

Errors go to stderr. In a terminal, ren prints the message, and the command’s help too if you mistyped the command. In JSON, it prints one line:

Output
{ "error": { "type": "NotFoundError", "message": "Space not found." } }

When the API refused the request, type is the API’s error type and the error’s other fields follow; see Errors. Two types come from the CLI itself: UsageError for a mistyped command, and CliError for anything else, such as a server it can’t reach. If a flag or --input fails validation, the error also has a problems list that names the flag behind each problem.