Getting RuntimeError: OPENROUTER_API_KEY is not set

Hey I am getting following error as soon as I run the command ./your_program.sh -p “How many tools are available to you in this request? Number only.”

Error: Traceback (most recent call last):
File “”, line 203, in _run_module_as_main
File “”, line 88, in _run_code
File “/Users/akashmalasetty/Documents/codecrafters-claude-code-python/app/main.py”, line 56, in
main()
~~~~^^
File “/Users/akashmalasetty/Documents/codecrafters-claude-code-python/app/main.py”, line 17, in main
raise RuntimeError(“OPENROUTER_API_KEY is not set”)
RuntimeError: OPENROUTER_API_KEY is not set

can you help me how will I get the OPENROUTER_API_KEY

Hi @AkashMalasetty

I see you have resolved the issue and started working on the challenges.

If you’re open to sharing, I’d be curious to know what the issue turned out to be and how you fixed it.