File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -607,20 +607,24 @@ program
607607
608608 // Check if API key is configured (except for mcp commands)
609609 const args = process . argv . slice ( 2 ) ;
610- if (
611- args [ 0 ] !== "mcp" &&
612- args [ 0 ] !== "mcp-server" &&
613- args [ 0 ] !== "--help" &&
614- args [ 0 ] !== "-h" &&
615- args . length > 0
616- ) {
617- const config = getConfig ( ) ;
618- if ( ! config . apiKey ) {
619- console . error (
620- "\n❌ API key not configured. Set RUNLOOP_API_KEY environment variable.\n" ,
621- ) ;
622- processUtils . exit ( 1 ) ;
623- }
610+ if ( ! process . env . RUNLOOP_API_KEY ) {
611+ console . error ( `
612+ ❌ API key not configured.
613+
614+ To get started:
615+ 1. Go to https://platform.runloop.ai/settings and create an API key
616+ 2. Set the environment variable:
617+
618+ export RUNLOOP_API_KEY=your_api_key_here
619+
620+ To make it permanent, add this line to your shell config:
621+ • For zsh: echo 'export RUNLOOP_API_KEY=your_api_key_here' >> ~/.zshrc
622+ • For bash: echo 'export RUNLOOP_API_KEY=your_api_key_here' >> ~/.bashrc
623+
624+ Then restart your terminal or run: source ~/.zshrc (or ~/.bashrc)
625+ ` ) ;
626+ processUtils . exit ( 1 ) ;
627+ return ; // Ensure execution stops
624628 }
625629
626630 // If no command provided, show main menu
You can’t perform that action at this time.
0 commit comments