#notion skill
1 messages · Page 1 of 1 (latest)
OpenClaw doesn’t magically get the Notion “Internal integration secret” just because you pasted it somewhere — it has to be available to the Gateway process as an env var.
What to do:
-
Figure out which env var name the Notion skill expects (common ones are
NOTION_API_KEYorNOTION_TOKEN).
Easiest: runopenclaw skills checkand it will usually say “missing env var …”. -
Put it in an env file that OpenClaw actually loads. Per docs, OpenClaw reads env vars from the parent process plus:
.envin the current working directory~/.openclaw/.envas a global fallback
Source: https://docs.openclaw.ai/gateway/configuration#environment-variables
So on the gateway host, create/edit:
~/.openclaw/.envand add a line like:
NOTION_API_KEY=secret_xxxxx(use whatever key name your skill expects)
- Restart the gateway (env var changes won’t reliably hot-reload):
openclaw gateway restart
If it’s still complaining “no .env file”, paste the exact message (especially if it includes a path), plus the output of openclaw skills check — that will tell us whether it’s looking for .env in the wrong folder vs just missing the env var.
Ready to use:
📦 healthcheck
📝 notion
📦 skill-creator
đź’¬ slack
🌤️ weather
That openclaw skills check output means the Notion skill prompt is installed and eligible — but it doesn’t mean the Notion token is actually available at runtime.
Also: you don’t need a .env file specifically. That’s just one way to provide env vars.
Fix (pick one)
Option A (recommended): global env file
- On the gateway host, create/edit:
~/.openclaw/.env - Add the token using the env var name your skill expects (most commonly):
NOTION_API_KEY=secret_...(this is the Notion “Internal integration secret”)
- Restart the gateway:
openclaw gateway restart
Option B: put it in config (no .env file at all)
In ~/.openclaw/openclaw.json add:
{
env: {
NOTION_API_KEY: "secret_..."
// (or equivalently: vars: { NOTION_API_KEY: "secret_..." })
}
}
Docs on env precedence + the config env block:
https://docs.openclaw.ai/help/environment
Quick sanity check
After doing A or B, ask the agent to run (via exec) something like printenv | rg NOTION or echo $NOTION_API_KEY to confirm the token is actually visible.
If you paste the exact line where the agent complains about “no .env file” (sometimes it includes the path it’s looking in), I can tell you which of the above it expects.
nvm, i guess it just takes a bit to set in