ohmygpt-logoOhMyGPT Cookbook

Claude Code

在 Claude Code 中使用 OhMyGPT API

Claude Code: https://github.com/anthropics/claude-code


安装

npm install -g @anthropic-ai/claude-code

配置

Linux / MacOS:

export ANTHROPIC_BASE_URL=https://api.ohmygpt.com
export ANTHROPIC_API_KEY=<your-api-key>

使用

claude

详细使用方法请参考: https://docs.anthropic.com/en/docs/claude-code/overview

目录