@allbaseai/openclaw-allbase
v0.1.5
Published
OpenClaw plugin to map OpenClaw agents to Allbase agent/workspace profiles.
Downloads
575
Readme
OpenClaw Allbase Plugin
Connect OpenClaw agents to Allbase profiles with OAuth (recommended) and env/api-key fallback.
What it supports
- Map each OpenClaw agent to a different Allbase profile
- OAuth-first auth (access token or refresh-token flow)
- Env/api-key fallback for server-side automation
- Tools exposed in agent runtime:
allbasewith actions:statussave_memorysave_knowledgesearch_memoriesupload_documentsearch_documents
Install (npm)
openclaw plugins install @allbaseai/openclaw-allbaseInstall (local path)
cd /home/jason/Documents/botscripts/skills/openclaw-allbase-plugin
npm install
openclaw plugins install -l /home/jason/Documents/botscripts/skills/openclaw-allbase-pluginThen restart gateway.
Config path
Use plugins.entries.openclaw-allbase.config.
OAuth config (recommended)
{
baseUrl: "https://allbase.ai",
defaultProfile: "team",
profiles: {
team: {
// Option A: direct access token
oauthAccessToken: "eyJ...",
// Option B: refresh flow
// oauthRefreshToken: "...",
// oauthClientId: "oac-...",
// oauthTokenEndpoint: "https://allbase.ai/oauth/token"
}
},
mapByOpenclawAgent: {
"alan-allbase": "team"
}
}With OAuth, users can authorize/select their Allbase agent upstream and avoid static env wiring.
Env/API-key fallback (secondary)
If OAuth is not configured, the plugin can use profile credentials or env vars:
ALLBASE_WORKSPACE_IDALLBASE_AGENT_IDALLBASE_AGENT_API_KEY(orALLBASE_API_KEY)- optional:
ALLBASE_BASE_URL,ALLBASE_TOKEN_PATH
Profile-based api-key config still works:
{
baseUrl: "https://allbase.ai",
tokenPath: "/token",
defaultProfile: "team",
profiles: {
team: {
workspaceId: "ws-TEAM",
agentId: "team-agent",
apiKey: "abk_..."
}
}
}Usage examples
- Check mapping/health:
- tool call:
allbasewithaction: "status"
- tool call:
- Save memory:
action: "save_memory",content, optionalcategory,tags
- Search memory:
action: "search_memories",query
Optional profile parameter overrides automatic mapping for one call.
Notes
- Plugin id is
openclaw-allbase(use this id inplugins.entries.*). - Keep tokens/API keys private.
upload_documentrequires local file path available to the gateway host.
Interactive OAuth CLI flow (new)
You can now run a browser-based OAuth flow directly from OpenClaw commands:
- Start flow (prints a URL):
/allbase-auth-start <profile>Open URL on any device, approve, copy code.
Complete flow (stores tokens in
~/.openclaw/openclaw.json):
/allbase-auth-complete <CODE> <profile>- Check pending states:
/allbase-auth-statusAfter completion, restart gateway if needed:
openclaw gateway restart