AnythingLLM's LLM Provider → OpenAI (Generic) takes a base URL, a key, and a model — the exact shape of DaoXE. Configure it once and document chat, agents and embedding-driven workflows all draw from one account (cheapest APIs guide).
Why route AnythingLLM through DaoXE#
- Your docs become a knowledge base. RAG chat over PDFs and notes with the model of your choice.
- One key, many vendors. Swap the backend without re-uploading or re-indexing anything.
- Explicit token controls. Context-window and max-token fields are first-class settings, not hidden defaults.
Set it up in AnythingLLM#
- Open LLM settings. Settings → AI Providers → LLM → choose OpenAI (Generic) from the cloud providers.
- Set the Base URL. Enter
https://daoxe.com/v1— the OpenAI SDK beneath it appends paths itself, so the URL must end at/v1. - Add key, pick model. Paste your DaoXE key; the Chat Model field lists IDs from your account's
/v1/models— pick an exact one. - Size the two token fields. Model context window should match the real window of the chosen model; Max Tokens caps each request. Wrong values cause silent truncation, not errors.
Caveats worth knowing
Two numeric fields matter: a context window set larger than the model really has means long chats silently lose early history; one set smaller wastes the model. Developer-oriented option: AnythingLLM's own docs label Generic OpenAI as for users who understand each input — prefer their first-party providers only if the endpoint isn't OpenAI-shaped. Exact IDs: pick from the live model list; guessed names fail at first message. More clients: client setup notes.
Verify you actually get the model#
Prove the endpoint works before blaming the client — if this fails, no setting will fix it:
export DAOXE_API_KEY="your_api_key"
# List the exact model IDs your account can call
curl --fail-with-body --show-error --silent \
https://daoxe.com/v1/models \
-H "Authorization: Bearer ${DAOXE_API_KEY}"Prove the endpoint outside the client, then diff a hard prompt against the official API at temperature 0:
curl --fail-with-body --show-error --silent \
https://daoxe.com/v1/chat/completions \
-H "Authorization: Bearer ${DAOXE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_EXACT_MODEL_ID",
"max_tokens": 64,
"messages": [{"role": "user", "content": "Say hello in one sentence."}]
}'Verify us — don't trust us
Point the open benchmark at DaoXE and at the official API and compare at temperature 0. Then learn to detect model swapping so a cheaper endpoint can't quietly swap you to a smaller model.
Frequently asked questions#
Can AnythingLLM use DaoXE?
Yes — OpenAI (Generic) provider: base URL https://daoxe.com/v1, your key, an exact model ID.
Why does long chat forget the start?
The context-window field is larger than the model's real window. Set it to the true size.
Does it work for embeddings too?
Embedding models are configured separately in AnythingLLM — pick an embedding ID from the catalogue there.
What does it cost?
Per-model, account-scoped — live pricing; top-up is a flat 1 RMB = $1 of credit on every payment method.
Try DaoXE — and benchmark it yourself
One key for GPT, Claude, Gemini, DeepSeek and more. Point the open benchmark at us and compare — don't take our word for it.