Setup
- Check you have Node 22.5 or newer
node -vPrints v22.5 or higher? Carry on. The demo app stores its data with Node's built-in SQLite, which needs 22.5+. Otherwise install the current Node from nodejs.org first.
- Install shelby
npm install -g shelby-agentPermissions error on Mac or Linux? Skip the install and use
npx shelby-agenteverywhere you seeshelbybelow. - Clone the demo app and go inside it
git clone https://github.com/chris-mcr/MCR-Autos.git cd MCR-Autos && npm installShelby works on the folder you run it in, so always start it from inside the app.
- Add your API key
sk-or-v1-1568da9b07a572a2051892a94124601e2bbbc7f7848dee217be804740ec13d6dThe first run creates a
.envfile and stops. Open it, paste your key afterOPENROUTER_API_KEY=, save, and runshelbyagain. Never commit.env. - Check it works
shelby --doctorEvery line should show a tick, including tool-calling: emitted tool_calls. For a fuller test that makes the model write and read a real file, run
shelby --doctor --deep. - Start it and say hello
shelbyAnswer
yto trust the folder. Shelby asks before every edit or command. Type/tracefirst to watch each step as it happens. - Let shelby learn the app
/initType this inside shelby. It reads the app and writes a
SHELBY.mdfile so it knows how the project is built. Sayywhen it asks to write the file. - Add the workshop skills
cp workshop/skills/*.md .shelby/skills/Run this in a second terminal, in the app folder, not inside shelby. Then type
/skillsin shelby: it picks up the new files and should list 9 skills.
shelby --demo. It swaps the model for a scripted one so the real loop, /trace and /tools all work offline.See inside the agent
- /trace
- Live view of every request, tool call and result
- /prompt
- The exact system prompt the model gets
- /messages
- The raw message list, resent every step
- /tools
- Everything the model can call
- /context
- How big the conversation has grown
- /log
- Where this session is recorded
- /doctor <model>
- Does this model emit tool calls?
- --src
- Prints the folder with shelby's readable source
Pick a task
Full list of 13: open the task board.
- Use it: ask for a new page, then run
/reviewand/securityon the result. - Teach it a skill: ask it to make a skill for something you repeat, then use it.
- Evaluate it: run
/evalon your skill, and/doctor --deepon your model. - Models and subagents: run
/doctor --deepon your model, then compare a research question with and without the subagent tool.
If something goes wrong
| You see | Try |
|---|---|
| command not found: shelby | Use npx shelby-agent, or reopen the terminal after installing. |
| Missing OPENROUTER_API_KEY | Key is empty or .env is in the wrong folder. It must sit in the app folder you run shelby from. |
| 401 or "User not found" | Stray space or quote in the key, or an expired key. Re-paste it and run --doctor. |
| It talks about editing files but nothing changes | The model can't call tools. Run /doctor and switch to openai/gpt-4o-mini. |
| Anything else | Run shelby --doctor, then put your hand up. |