docs: add guidance for creating user matching OpenClaw agentId#1056
Closed
leckylao wants to merge 2 commits intovolcengine:mainfrom
Closed
docs: add guidance for creating user matching OpenClaw agentId#1056leckylao wants to merge 2 commits intovolcengine:mainfrom
leckylao wants to merge 2 commits intovolcengine:mainfrom
Conversation
OpenClaw defaults to using 'main' as the agentId, which creates a user-specific memory space. Users need to create this user in OpenViking and generate a user API key to avoid Access denied errors. This adds: - Warning box in Step 2: Create Team & Users - Commands to create user and generate API key - Troubleshooting entries for Access denied and INVALID_ARGUMENT errors
|
Failed to generate code suggestions for PR |
Author
|
This PR was heading in the wrong direction. The issue is not documentation but a code bug: the plugin doesn't send X-OpenViking-Account and X-OpenViking-User headers when using root API key, which prevents access to agent scope. I will create a new PR with the correct code fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When using the OpenClaw plugin with OpenViking, users may encounter these errors:
Access denied for viking://agent/xxx/memoriesINVALID_ARGUMENT: ROOT requests to tenant-scoped APIs must include X-OpenViking-Account and X-OpenViking-User headersThese occur because:
mainas theagentIduserId:agentIdhashSolution
This PR adds documentation to help users:
Added warning box in Step 2: Create Team & Users — Explains the agentId requirement with commands to:
Added troubleshooting entries — Two new rows in the troubleshooting table:
Access denied for viking://agent/xxx/memories→ Create user matching agentIdINVALID_ARGUMENT: ROOT requests...→ Use user API key instead of root keyTesting
These steps were verified on a production OpenClaw + OpenViking setup. Creating the
mainuser and using its API key resolved both error types.