Skip to content

Api key issue #32

Description

@Johamania

Checklist

Before reporting bugs or help requests, please fill out the following checklist:

  • I set the .env file with the necessary keys, including OPENAI_API_KEY, LLAMACLOUD_API_KEY, ELEVENLABS_API_KEY
  • My API keys are all functioning and have at least some credit balance
  • I ran both the scripts in the tools directory
  • I checked that my LlamaCloud Extract Agent and my LlamaCloud Index has been correctly created and are functioning (using the playground functionality in the UI
  • I activated the virtual environment and ensured that all the dependencies are installed properly
  • As a first step, I launched the docker services through docker compose up -d
  • As a second step, I launched the MCP server through uv run src/notebookllama/server.py
  • As a third and last step, I launched the Streamlit app through strealit run src/notebookllama/Home.py

Issue Description

My issue is on step 5, it is about running create_llama_extract_agent.py.

When i enter command "uv run tools/create_llama_extract_agent.py" there is error "ValueError: The API key is required.", but i got all 3 api keys and set them on .env, but it did not help.

Full version of error "(notebookllama) C:\Users\Jaxa\notebookllama>uv run tools/create_llama_extract_agent.py
Traceback (most recent call last):
File "C:\Users\Jaxa\notebookllama\tools\create_llama_extract_agent.py", line 22, in
main()
~~~~^^
File "C:\Users\Jaxa\notebookllama\tools\create_llama_extract_agent.py", line 13, in main
conn = LlamaExtract(api_key=os.getenv("LLAMACLOUD_API_KEY"))
File "C:\Users\Jaxa\notebookllama.venv\Lib\site-packages\llama_cloud_services\extract\extract.py", line 649, in init
raise ValueError("The API key is required.")
ValueError: The API key is required."

Than tried to run command "uv run tools/create_llama_cloud_index.py" then i selected Quick start (did not help error "llama_cloud.core.api_error.ApiError: status_code: 401, body: {'detail': 'Not authenticated'}"), then i selected Advanced and I chose Advanced it did not work too!

Relevant Traceback


Other details

Windows:
uv 0.7.21 (77c771c7f 2025-07-14):
Streamlit, version 1.46.1:
FastMCP version: 2.9.2
MCP version: 1.9.4
Python version: 3.13.3
:
Version: 1.1.0:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions