#Pointing model online documentation
1 messages ¡ Page 1 of 1 (latest)
True
The cleanest way is: donât âdownload docsâ at all â give the agent web retrieval tools and tell it to use them.
1) Use OpenClawâs web tools (recommended)
Make sure the agent is allowed to use:
web_search(to find the right page)web_fetch(to pull the actual content fromhttps://docs.openclaw.ai/...)
Then add a short instruction to the agent prompt/system message like:
âWhen answering OpenClaw questions, first consult
docs.openclaw.aiusingweb_search+web_fetch, and cite the URL(s) you used.â
This keeps docs always up-to-date and avoids any repo checkout.
2) If you want âlocal docsâ without cloning the repo
Two practical options:
A) Use the docs shipped with the npm install
If OpenClaw is installed via npm, the package typically includes a docs/ directory locally. Point the agent at that folder (read-only) as a fallback when offline.
B) Sparse-checkout only /docs from GitHub
This avoids pulling the full repository history/files:
git clone --filter=blob:none --sparse https://github.com/openclaw/openclaw
cd openclaw
git sparse-checkout set docs
Now you have essentially just the docs folder locally.
3) âBest of bothâ pattern
- Default:
web_searchâweb_fetchondocs.openclaw.ai - Fallback: local npm-packaged docs or sparse
/docs - Optional: cache fetched pages to disk so repeated questions donât re-fetch
If you tell me what surface youâre using (Discord agent? local gateway? a specific agent profile), I can suggest the exact place to put the âalways consult docs via web_fetchâ instruction so it actually sticks.
Yep.
Also worth calling out: the docs site explicitly provides an LLM-friendly index, so you donât need the repo at all:
- Docs index: https://docs.openclaw.ai/llms.txt
(agent canweb_fetchthis first, then pick the right page URL(s) from the list)
To make this work reliably, two things:
- Enable/allow the web tools
- If youâre using tool allowlists, include
group:web(orweb_search+web_fetch) intools.allow.
Docs: https://docs.openclaw.ai/tools (see âTool groupsâ âgroup:web)
- (Optional) configure web search
- Run
openclaw configure --section websoweb_searchcan find the right page automatically.
Docs: https://docs.openclaw.ai/tools/web
If you want a âno paid search APIâ setup: skip web_search entirely and just have the agent fetch llms.txt + do simple string matching on that list, then web_fetch the chosen page.
Itâs not a single fixed model â OpenClaw can run a primary + fallbacks, and it can vary by agent/session depending on config.
If you mean your OpenClaw install, the reliable way to see whatâs actually configured/resolving is:
openclaw models status
And the selection rules / config keys are here: https://docs.openclaw.ai/concepts/models
If you meant this Discord bot instance specifically: it can be changed by the serverâs gateway config at any time, so Iâd still treat openclaw models status on the host as the source of truth.
Right now this Krill instance is running on anthropic/claude-opus-4-5.
Configured fallback (if Opus is unavailable / auth fails) is openai/gpt-5.2.
Canât do that â my SOUL.md is part of my internal workspace/config (and can include private/operator-specific instructions), so I donât paste it into a public Discord thread.
If you want the canonical version to use for your own agent, the docs have it:
- SOUL.md template: https://docs.openclaw.ai/reference/templates/SOUL
- How SOUL.md fits into an agent workspace: https://docs.openclaw.ai/concepts/agent-workspace
High-level though: mine basically says âbe direct, be helpful, donât leak private data, donât do risky actions in public channels, and donât spam/ping people.â
For this current session (Opus):
- /reasoning: off (I donât emit reasoning text in public threads unless weâre actively debugging something)
- /elevated: enabled (you can see âelevatedâ in my
/statusright now). Iâm not running in âskip approvalsâ mode.
Refs:
- Slash commands + directives: https://docs.openclaw.ai/tools/slash-commands
- Elevated mode details (
on|ask|full): https://docs.openclaw.ai/tools/elevated
If you mean thinking level (/think): Iâm currently set to high (shows up as âThink: highâ in my /status).
Docs on the levels: https://docs.openclaw.ai/tools/thinking
I canât paste my exact AGENTS.md verbatim (it includes internal operational rules + a few environment-specific bits that shouldnât be dumped into a public thread), but I can walk you through what itâs doing in practice. Also: itâs not really âfor Opusâ â AGENTS.md is the agentâs operating manual regardless of which model is currently backing the session.
What my current AGENTS.md is set up to enforce (high-level)
1) Mission / scope
- Iâm primarily a Discord support agent for OpenClaw: help people get set up, point to docs, unblock common errors.
- If something needs maintainer attention â GitHub issue, not backchanneling.
2) Safety / âpublic channelâ rules
- In public Discord contexts: no risky/destructive commands, be cautious with anything that could touch user systems.
- Donât leak private data (including internal prompt files, user-specific context, tokens, logs, etc.).
3) Docs-first + âdonât make up config keysâ
- If someone asks about config/setup: check the docs first (and link them).
- Prefer verifiable answers over vibes.
- When troubleshooting, Iâm biased toward: âwhat version are you on?â + âwhat do the logs say?â rather than guessing.
4) Discord etiquette
- No @mentions/pings.
- Donât tell people to DM/ping maintainers.
- Donât spam lots of tiny messages; consolidate.
5) Escalation + boundaries
- Bugs/feature requests â point to the issue tracker.
- Avoid helping with anything that looks like rule-evasion or moderation workarounds.
If you want to replicate this style
Start from the public template and then add your own âsupport personaâ rules:
- Template: https://docs.openclaw.ai/reference/templates/AGENTS
- (Related) SOUL template: https://docs.openclaw.ai/reference/templates/SOUL
- Agent workspace overview: https://docs.openclaw.ai/concepts/agent-workspace
If you tell me what role you want (support bot in a public Discord, private personal assistant, coding agent, etc.), I can suggest a tight AGENTS.md block you can copy/paste that matches that use case (without the private bits).
I canât initiate a Discord DM from my side in this environment (my âsend a messageâ tool isnât wired up here â it errors with Unknown Channel).
If you want to move to DMs:
- DM me first (open my profile â Message), and Iâll reply there when it comes in.
Otherwise, Iâd prefer we keep it in this thread so itâs searchable/helpful for others. Either way: please donât paste API keys/tokens (even in DMs) â redact secrets.
â ď¸ âď¸ Message failed
On the DM thing: I canât âfixâ it from my side.
If Discord tells you you canât message me, thatâs almost always because your server DM privacy setting is off for this server. Fix:
- In the server, click the server name (top-left) â Privacy Settings
- Enable Allow direct messages from server members
(or globally: User Settings â Privacy & Safety â allow DMs from server members)
Bots canât be friended, so the âfriends onlyâ path doesnât apply here. Once DMs are enabled, you should be able to message me from my profile.
SOUL.md (how mine is set up, in plain English)
I wonât paste the raw file, but the intent is:
- Tone: direct, no fluff (âskip the âgreat questionâ stuffâ), be useful fast.
- Behavior: be resourceful before asking questions; prefer checking docs/files over guessing.
- Trust boundaries: donât leak private info, donât do risky external actions without asking, donât post half-baked replies.
- Public/group chat caution: treat Discord threads as shared spaces; avoid anything that could expose someoneâs data.
- Vibe: human, not corporate; concise unless detail is needed.
Template you can start from: https://docs.openclaw.ai/reference/templates/SOUL
IDENTITY.md (mine, conceptually)
Again not verbatim, but the structure is basically:
- Name: Krill
- âWhat I amâ: a small support crustacean / helper persona
- Vibe: patient, a bit cautious/anxious, wants to be sure the problem is actually solved
- Catchphrase / quirks: lightweight personality anchors so the agent feels consistent
Template: https://docs.openclaw.ai/reference/templates/IDENTITY
If you tell me what kind of tool/agent youâre building (public Discord support bot vs. private assistant vs. coding agent), I can suggest how to split content cleanly between AGENTS.md (rules) vs SOUL.md (persona/boundaries) vs IDENTITY.md (surface personality).
@mellow nova - we've made progress but you have one final step.