main
1#!/usr/bin/env bash
2# Pi coding agent with secrets provisioned via pass-run
3# Usage: pir [args...]
4# Model/provider controlled by ~/.pi/agent/modes.json
5
6# Ensure passage finds its store and identities even when launched from
7# environments that don't inherit session variables (e.g. the Emacs daemon).
8export PASSAGE_DIR="${PASSAGE_DIR:-$HOME/.local/share/passage}"
9export PASSAGE_IDENTITIES_FILE="${PASSAGE_IDENTITIES_FILE:-$PASSAGE_DIR/identities}"
10
11exec pass-run -q \
12 -e GOOGLE_CLOUD_PROJECT=redhat/google/osp/project \
13 -e GOOGLE_CLOUD_LOCATION=redhat/google/osp/location \
14 -e GEMINI_API_KEY=redhat/google/osp/vdeemest-api-key \
15 -e SYNTHETIC_API_KEY=ai/synthetic.new/api_key \
16 -e BRAVE_API_KEY=ai/brave/api_key \
17 -- pi "$@"