Repository navigation
StardewPilot 0.2.0
Adds a copilot settings page, so you can set up the AI model without a terminal.
What's new
- Settings page in your browser. In the game press F8 and type
/settings. On the page you can:- sign in with a subscription (ChatGPT Plus/Pro, Claude Pro/Max, GitHub Copilot and others), add an API key for any of pi's providers, or add a custom or local endpoint (Ollama, llama.cpp, any OpenAI-compatible service);
- pick a model, Test it (checks that it can call tools), and Save to restart the copilot with it.
- Agent wrapper. The mod now starts a small Node program that runs pi for you, restarts it if it crashes, and stops it when the game exits.
- Clearer status in game. When the copilot isn't ready, the chat says why (needs setup, starting, or the last error) and points to
/settings.
Privacy and safety
- Keys and sign-ins are stored by pi in the copilot's own folder (
~/.config/StardewPilot/pi, or%APPDATA%\StardewPilot\pion Windows). The game never sees them. - The page only listens on 127.0.0.1 and needs the private link the game opens.
Install / upgrade
- Install SMAPI 4.5+, then unzip
StardewPilot-0.2.0.zipinto the game'sModsfolder. When upgrading, your existingconfig.jsonis kept. - Install Node.js 22.19+ and pi 1.5+ (
npm install -g @earendil-works/pi-coding-agent). - Set
Launcher.EnabledtotrueinMods/StardewPilot/config.jsonand start the game. - Press F8, type
/settings, sign in and choose a model.
To set up before starting the game, run node Mods/StardewPilot/agent/src/wrapper/main.ts setup.
Known limits
- Subscription sign-in comes from pi and works through the page, but has not yet been tried end to end with a real subscription.
- Combat is basic, and co-op has had little testing.
- Tested on Linux with Stardew Valley 1.6.15, SMAPI 4.5.2 and pi 1.5.2.