Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit ab559aa

Browse files
committed
fix(agent): wire CoinGecko API key and update daemon env injection list
- Pass COINGECKO_API_KEY to MarketMonitor for authenticated crypto API access - Add ALPHA_VANTAGE_API_KEY, NOTION_TASKS_DATABASE_ID, TELEGRAM_ALLOWED_USER_IDS to daemon launchd env injection list - Replace stale TELEGRAM_CHAT_ID with TELEGRAM_ALLOWED_USER_IDS
1 parent 4877c2a commit ab559aa

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/autonomous/agent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ export class AutonomousAgent {
292292
// Initialize market monitor with Pryce's watchlist
293293
this.marketMonitor = new MarketMonitor(this.eventBus, {
294294
alphaVantageApiKey: process.env.ALPHA_VANTAGE_API_KEY,
295+
cryptoApiKey: process.env.COINGECKO_API_KEY,
295296
});
296297
// Bootstrap watchlist with tracked assets
297298
const watchlistAssets: Array<{ asset: string; assetClass: string }> = [

src/ops/daemon.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ export async function installDaemon(options: DaemonOptions = {}): Promise<void>
8383
// Load env vars from ~/.ari/.env and inject into plist
8484
const envVarsToInject = [
8585
'ANTHROPIC_API_KEY', 'OPENAI_API_KEY', 'GOOGLE_AI_API_KEY', 'XAI_API_KEY',
86-
'ARI_API_KEY', 'TELEGRAM_BOT_TOKEN', 'TELEGRAM_OWNER_USER_ID', 'TELEGRAM_CHAT_ID',
87-
'NOTION_API_KEY', 'NOTION_INBOX_DATABASE_ID', 'NOTION_DAILY_LOG_PARENT_ID',
88-
'X_BEARER_TOKEN', 'X_USER_ID', 'ELEVENLABS_API_KEY', 'COINGECKO_API_KEY',
86+
'ARI_API_KEY', 'TELEGRAM_BOT_TOKEN', 'TELEGRAM_OWNER_USER_ID', 'TELEGRAM_ALLOWED_USER_IDS',
87+
'NOTION_API_KEY', 'NOTION_INBOX_DATABASE_ID', 'NOTION_DAILY_LOG_PARENT_ID', 'NOTION_TASKS_DATABASE_ID',
88+
'X_BEARER_TOKEN', 'X_USER_ID', 'ALPHA_VANTAGE_API_KEY', 'ELEVENLABS_API_KEY', 'COINGECKO_API_KEY',
8989
];
9090
let envPlistEntries = '';
9191
try {

0 commit comments

Comments
 (0)