Skip to content

Conversation

@mouyong
Copy link

@mouyong mouyong commented Nov 30, 2025

  • Add dotenv dependency to load .env file
  • Import dotenv/config in server entry point

This fixes the "Invalid API key" error by ensuring environment variables from .env are loaded before the server starts.

解决 example/claude-code-web 无法通过配置 .env 运行的问题

- Add dotenv dependency to load .env file
- Import dotenv/config in server entry point

This fixes the "Invalid API key" error by ensuring environment
variables from .env are loaded before the server starts.
@mouyong
Copy link
Author

mouyong commented Nov 30, 2025

#5

.env 内容,放置在对应的项目目录下即可

ANTHROPIC_API_KEY=sk-xxxx
ANTHROPIC_BASE_URL=https://ai-router.plugins-world.cn

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant