Skip to content

StardewPilot 0.2.0

Choose a tag to compare

@4444zyf 4444zyf released this 15 Nov 11:49
· 32 commits to main since this release

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\pi on 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

  1. Install SMAPI 4.5+, then unzip StardewPilot-0.2.0.zip into the game's Mods folder. When upgrading, your existing config.json is kept.
  2. Install Node.js 22.19+ and pi 1.5+ (npm install -g @earendil-works/pi-coding-agent).
  3. Set Launcher.Enabled to true in Mods/StardewPilot/config.json and start the game.
  4. 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.