# AI use cases for Aster (Zfinix/aster)

Repo: [Zfinix/aster](https://github.com/Zfinix/aster) | Use cases: 3 | Page: https://dedupedai.com/use-cases/zfinix-aster/

Aster is an open-source Rust terminal coding agent that reads code, answers questions, edits files, runs commands and reviews changes using any OpenAI-compatible provider, with sessions, memory and permissions stored as local files.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Run a terminal coding agent on the model you choose: https://dedupedai.com/use-cases/zfinix-aster/run-coding-agent-on-own-model/
- Limit what the agent may edit or run, per path and command: https://dedupedai.com/use-cases/zfinix-aster/set-agent-permissions-per-path/
- Script one-shot questions, reviews and the browser UI: https://dedupedai.com/use-cases/zfinix-aster/script-aster-and-browser-ui/

## How to run a terminal coding agent on the model you choose with Aster

Repo: [Zfinix/aster](https://github.com/Zfinix/aster) | Difficulty: Beginner | Time: 15 minutes | Basis: From the README

Install Aster, an open-source Rust coding agent, and point it at OpenRouter, your own API key or a local model in Ollama, LM Studio, vLLM or llama.cpp.

**Who it is for:** A developer who wants a Claude Code style terminal agent without being tied to one vendor, or who must keep code on their own machine.

**The problem:** Most coding agents only work with their maker's models and accounts, so switching providers or going fully local means switching tools.

**The outcome:** An agent in your repo that reads code, answers questions, edits files and runs commands with the model you picked, with config kept in ~/.aster for every repo.

### Steps

1. Install: `curl -fsSL https://withaster.dev/install | sh`, or build it with `cargo install --path crates/aster-cli` from a clone
2. Go to your repo and run `aster`; the first run asks how to connect
3. Pick browser sign-in (OpenRouter, ChatGPT, Z.ai), paste an API key, or choose a local model already running
4. Or skip the wizard and export ASTER_API_KEY, ASTER_BASE_URL and ASTER_MODEL
5. Ask something real, for example where does the retry logic live?
6. Use /switch to change model, provider or reasoning effort mid-chat; run Aster init to redo setup

### Prompt to paste into your agent

```text
Install Zfinix/aster and configure it for <provider or local Ollama model>. In this repo, ask it where <feature> is implemented and to add a test for <edge case>, then show me the diff before anything is committed.
```

### Caveat

Pointed at a local model it works with no network at all; quality then depends on that model.

Risk, remote script: The quick install pipes a script into sh; build from source with cargo to avoid it.

Risk, credentials: Keys are stored in ~/.aster/.env or read from ASTER_API_KEY; keep them private.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/zfinix-aster/run-coding-agent-on-own-model/

## How to limit what the agent may edit or run, per path and command with Aster

Repo: [Zfinix/aster](https://github.com/Zfinix/aster) | Difficulty: Beginner | Time: 15 minutes | Basis: From the README

Pick one of Aster's permission modes and add allow, ask and deny rules in Aster.yaml, so tests run freely, migrations need approval and publishing is blocked.

**Who it is for:** A developer or team lead who wants agent speed on safe work but a hard stop on risky files and commands.

**The problem:** Agents either ask about every action, which is slow, or run everything, which is how a migration or publish happens by accident.

**The outcome:** A shared rule set that chat, review and fix all follow: trusted commands run, sensitive paths ask first and dangerous commands never run.

### Steps

1. Choose a mode: plan never edits, manual asks before everything, auto pauses on risky commands like sudo, rm and curl, edit is the default
2. Switch mode mid-chat with shift+tab, or for one run with --permission-mode
3. In Aster.yaml add permissions with allow rules such as Bash(cargo test:*) and Edit(src/**)
4. Add ask rules such as Edit(migrations/**) for paths that need your approval
5. Add deny rules such as Bash(npm publish:*) for commands that must never run
6. Run a task that touches a migration and confirm Aster pauses to ask

### Prompt to paste into your agent

```text
Write an aster.yaml permissions block for this repo: allow running <test command> and editing <source folder>, ask before editing <migrations or infra folder>, and deny <publish or deploy commands>. Explain which mode you recommend and why.
```

### Caveat

The yolo mode removes all rules and the sandbox; avoid it outside throwaway environments.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/zfinix-aster/set-agent-permissions-per-path/

## How to script one-shot questions, reviews and the browser UI with Aster

Repo: [Zfinix/aster](https://github.com/Zfinix/aster) | Difficulty: Intermediate | Time: 20 minutes | Basis: From the README

Use Aster from scripts with one-shot chat and piped prompts, review a branch or pull request, and open its browser UI with Aster serve.

**Who it is for:** A developer who wants agent answers and code review inside scripts, git hooks or from a phone browser, not only in an interactive chat.

**The problem:** Interactive agents are hard to automate, and reviewing a branch usually means copying a diff into a chat window.

**The outcome:** One-command answers and reviews with JSON output a script can act on, plus a browser panel on localhost:4187 for when you are away from the terminal.

### Steps

1. Ask once and exit: `aster chat "why is finding 2 critical?"`
2. Pipe a prompt: `echo "explain this repo" | aster`
3. Pick up the last session with `aster chat --continue`
4. Review a branch range: `aster review --range main..HEAD`, or apply fixes with `aster review --json | aster fix --apply`
5. Open the browser UI with `aster serve`
6. On a server use `aster serve --port 8080 --no-open`

### Prompt to paste into your agent

```text
Using Zfinix/aster, review the changes on this branch with aster review --range main..HEAD, list each finding with severity and confidence, and only apply fixes for findings above 70% confidence. Show me the diff afterwards.
```

### Caveat

Sessions, memory and skills are plain files on disk, so treat ~/.aster as sensitive.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/zfinix-aster/script-aster-and-browser-ui/
