Getting started with Ashr
Ashr is an AI agent for model training work. It runs in your terminal, inside your repo, on your machine. Its model calls run on Ashr credits, so you need no model subscription or API key.
What you need
- A Mac or Linux machine with Node.js 22.19 or newer and npm. Check with
node --version. - An Ashr account. Your first run signs you in. Free starts with 2,000 credits once you add a card or enter a code.
- A git repository to work in. Ashr can clone one for you. Subagents need git to work.
Install
Install Ashr from npm:
npm i -g @ashrlabs/ashr
Then check it worked:
ashr --version
You should see the version you have, such as 0.3.0. If you ever experience any issues working with Ashr, please report the version number in order to help our team investigate.
Sign in to your Ashr account
The first time you run ashr, it opens your browser to sign in to your Ashr account. Once signed in you will be able to see a page that tracks all experiments, shows agent based usage, and cost monitoring across all cloud and GPU providers.
Credits
All credits are metered directly through the Ashr platform, upon purchasing Ashr, no other keys or subscriptions are necessary in order to activate the credits. Upgrading monthly plans and purchasing credits is available directly through the Ashr platform.
We choose to meter credits directly through the platform, so we can provide our users with a fully model agnostic harness, using the most capable combination of frontier and open-weight models for any given task.
| Plan | Price | Credits | How to get it |
|---|---|---|---|
| Free | Free | 2,000, once | Add a card or enter a code. With a card, Free becomes Developer after 7 days unless you cancel |
| Developer | $25 a month | 2,500 a month | Subscribe from your account page |
| Max | $200 a month | 20,000 a month, plus teams | Set up with us after a call |
| Lab | $1,000 a month | 125,000 a month, for a team | Set up with us after a call |
| Scale | $2,500 a month | 350,000 a month, for a team | Set up with us after a call |
If you would like to alter the selected configuration of models or effort levels, you can do so with the /model command, and select from a dropdown menu of supported providers.
Set up a repo
/init teaches Ashr how your project works. It reads the repo and understands operational infrastructure: GPUs, experiment tracking, configured cloud services, and also understands what resources you are provisioned in order to stay in line with existing organizational constraints. Ashr will use these same tools as it works with you.
Because Ashr internally uses git features, such as worktrees, in order to structure context and relay information back to Experiments and Cost, we recommend running all Ashr sessions you want tracked within a git repo.
Start Ashr in the repo, then type /init:
cd ~/code/my-project
ashr
/init
All of Ashr's findings are recorded in an untracked Ashr.md file which you are free to edit at anytime.
Work with Ashr
Ashr's UI is the same as any terminal coding agent workflow you may have already used. It is configured to run on auto mode by default, and will only ask for permission when it wants to take an action that spends money. Switch modes with Shift+Tab or /mode, and set what Ashr may do without asking under Permissions below.
In order to explore a list of all commands that Ashr has, simply use /
You can also use the -p flag with a prompt argument in order to run an Ashr session with that prompt. We find this to be useful in automated tests and one time script runs.
ashr -p "Which config gives the lowest val loss in runs/? Answer in one line."
Parallel subagents
Ashr is encoded with the idea that model training and serving work is inherently experimental, and is biased to use more subagents than traditional coding agents in order to break down long-running tasks, aggressively optimize systems, and discover potentially novel improvements. In order to ensure that engineers using Ashr are always in control and understand what each subagent is doing, we provide a few tools:
- Its own copy of your repo. Every subagent works in its own git worktree on its own branch, starting from your files as they are, uncommitted changes included. Subagents never touch your checkout or each other's work.
- Live progress. Each subagent's steps show up under its name as it works, followed by its report.
- Reviewed merges. When subagents finish, Ashr reviews each branch and brings only the work it keeps into your current branch, as ordinary commits.
- A record of every try. Each subagent is recorded as an experiment, and its worktree and
ashr/…branch stay after the session, so you can open, compare or continue any of them. Remove one withgit worktree removewhen you no longer need it.
Ask for subagents in plain words:
Try three learning rates (1e-4, 3e-4, 1e-3) on the smoke-test config in parallel,
one subagent each, then compare final val loss and merge the best config.
Experiments
Training work is experimental, so Ashr treats every subagent as an experiment, with a hypothesis and the experiment it builds on. Its numbers are read from the runs your code logged, never taken from the agent's own report, so each result is one you can trust and compare.
All Ashr records are stored within Experiments, which is accessible in the terminal as well with the /experiments command.
Click an experiment to see its hypothesis, its charts and numbers, and the files it changed. From there, open its worktree in VS Code or Cursor, or copy the command that continues that exact experiment from your terminal with the same agent and context, ashr -r <session> <experiment>. The original session stays as it was.
This works because of how Ashr handles context. Each subagent has its own conversation and its own worktree, so the main session holds only the experiment tree (what was tried, on what, with what result) rather than every log line. The tree is kept per repo, outside git, across every session, and Ashr reads it before every step. A new session, or one whose context was compacted, builds on what was already tried instead of repeating it.
Rails
Rails are optimized infrastructure and software for the stages most teams repeat. When a rail fits the job, Ashr runs on it instead of building from scratch.
New
Data curationTraces, documents and logs into a clean training set.
TrainingFine-tuning to reinforcement learning, within your spend cap.
EvaluationEvery candidate graded in your own environment.
ServingDownload the weights, or use our OpenAI and Anthropic-compatible endpoint.
You don't call a rail yourself: ask Ashr for the work, and it uses a rail when one fits. New rails will be added over time.
Data curation
Traces, documents and logs into a clean training set.
Training
Fine-tuning to reinforcement learning, within your spend cap.
Evaluation
Every candidate graded in your own environment.
Serving
Download the weights, or use our OpenAI and Anthropic-compatible endpoint.
Sessions
Every conversation is saved. If you quit, or your laptop closes, pick up where you left off. Work that was still running picks up too.
ashr -c # continue your latest session in this repo
ashr -r # pick an older session from a list
Permissions
Ashr has three permission modes. Press Shift+Tab to cycle through them (ask → edit → auto), or type /mode.
| Mode | Runs without asking | Asks first |
|---|---|---|
| auto (default) | Everything, inside or outside the repo | Nothing, except actions a deny rule blocks |
| edit | Reading files, read-only commands, and editing files inside the repo | Any other command, anything outside the repo, dangerous commands, and changes to .git |
| ask | Reading files and read-only commands inside the repo | Every edit, every other command, and everything above |
Approving and rules. When Ashr asks, you can approve once, reject, or always allow, which saves a rule for you in this repo. See and remove your rules with /permissions. To share rules with your team, commit them in .ashr/settings.json: they apply once you trust the repo, and they can never turn on auto mode.
Warning: in auto mode Ashr can run any command your user account can. For a repo you don't trust, use ask mode, or run Ashr in a separate user account or VM.
Your data
Your code and data stay on your machine. Ashr sends your messages, and the files and command output it works with, through Ashr's API to the model provider (OpenAI or Anthropic) to do the work. Ashr's API records the token counts to charge your credits. We keep heavily redacted logs of chats for debugging and maintenance. Secrets, emails, phone numbers and your home directory path are removed on your machine before anything leaves it.
Updating
Ashr never updates on its own. To update, reinstall the latest version from npm:
npm i -g @ashrlabs/ashr@latest
Then restart ashr. ashr -c brings your session back.
Command and key reference
Terminal commands
| Command | What it does |
|---|---|
ashr |
Start Ashr in the current folder |
ashr -c |
Continue your last session in this folder |
ashr -r |
Pick an earlier session to resume |
ashr -r <session> <experiment> |
Continue one experiment's agent, with its context, in its worktree |
ashr -p "fix the failing test" |
Run one task without the full screen, then exit |
ashr -p "..." --mode ask |
Same, with a permission mode: ask, edit or auto |
ashr -p "..." --allow "<rule>" |
Allow one more rule for this run |
ashr -p "..." --output json |
Print the result as JSON, for scripts |
ashr --model provider/model |
Start with a specific model |
ashr login |
Sign in to your Ashr account |
ashr logout |
Forget the saved sign-in |
npm i -g @ashrlabs/ashr@latest |
Update to the latest version |
ashr --version |
Show the version and build ID |
ashr --help |
Show all options |
Slash commands (type / inside Ashr)
| Command | What it does |
|---|---|
/init |
Set up this repo and write ASHR.md |
/model |
Switch models |
/mode |
Switch permission mode (ask, edit, auto) |
/permissions |
See your rules. /permissions remove <rule> deletes one of yours |
/usage |
Show tokens, context and cost for this session |
/account |
Open your account in the browser: usage, cost, experiments and plan |
/experiments |
See this repo's experiments: what each tested, what it built on, and what it found |
/compact |
Summarize the conversation to free up context |
/resume |
Open an earlier session |
/fork |
Start a new session from an earlier message |
/rewind |
Go back to an earlier message, and optionally undo Ashr's file edits |
/add-dir |
Let Ashr work in another folder too |
/billing |
Connect AWS, GCP, RunPod or Vast so your Costs page tracks their runs |
/help |
Show commands and keys |
/quit |
Exit |
Keys
| Key | What it does |
|---|---|
Enter |
Send. While Ashr is working, it steers the current task |
Option+Enter |
While Ashr is working, queue a message for when it finishes |
Esc |
Stop the current task |
Shift+Tab |
Cycle permission modes: ask → edit → auto |
Tab |
While an approval card waits, switch between it and the input box |
a / r / A / e |
On an approval card: approve, reject, always allow, expand or collapse |
Ctrl+O |
Show or hide the full output of the last tool |
Ctrl+T |
Show or hide reasoning |
Ctrl+C twice |
Quit |
/ |
Open the command menu. Type a few letters to narrow it |
| Start typing a path | Autocomplete file names |
Stuck, or want us to run a task with you?
Pick a time