Using Mem0 from China — custom OpenAI base_url for API relay behind GFW #4385
holysheep123
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Mem0 uses OpenAI (and optionally Anthropic) APIs under the hood. In mainland China, both
api.openai.comandapi.anthropic.comare blocked:Solution: Custom base_url
Mem0 passes through the OpenAI client config, so you can set a custom
base_url:Or simply set env vars before importing:
The relay at holysheep.ai is fully OpenAI-compatible, supporting GPT-5, Claude, Gemini. Pay-as-you-go ¥1=$1. Register: holysheep.ai/register
If you also use Claude Code / Codex / Cline:
npx @simonyea/holysheep-cli setupBeta Was this translation helpful? Give feedback.
All reactions