This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.pi: switch to openrouter with bitwarden key injection

+14 -3
+14 -3
tools/pi/flake-module.nix
··· 50 50 ./auto-theme.ts 51 51 ./websearch.ts 52 52 ]; 53 - defaultProvider = "anthropic"; 54 - defaultModel = "claude-opus-4-6"; 53 + defaultProvider = "openrouter"; 54 + defaultModel = "deepseek/deepseek-v4-pro"; 55 55 defaultThinkingLevel = "medium"; 56 56 permissionLevel = "low"; 57 57 permissionMode = "ask"; ··· 95 95 }; 96 96 in 97 97 { 98 - packages.pi = pi.wrapper; 98 + packages.pi = pkgs.writeShellApplication { 99 + name = "pi"; 100 + runtimeInputs = [ pkgs.rbw ]; 101 + text = '' 102 + if [ -z "''${OPENROUTER_API_KEY:-}" ]; then 103 + rbw unlock 104 + OPENROUTER_API_KEY=$(rbw get -f api_key openrouter.ai) 105 + export OPENROUTER_API_KEY 106 + fi 107 + exec ${pi.wrapper}/bin/pi "$@" 108 + ''; 109 + }; 99 110 }; 100 111 }