Skip to content

Troubleshoot VB-OS Authentication Issues

The API key is missing, invalid, or expired.

Fix:

  • Verify the Authorization: Bearer <key> header is present
  • Check that the key has not been revoked
  • Ensure the key is scoped to the correct organization and project

The API key is valid but does not have permission for the requested operation.

Fix:

  • Check the key’s permission scope
  • Verify the key has access to the target project
from vbos import VBOSClient
client = VBOSClient(api_key="vbos_your_key_here")
import { VBOSClient } from '@vb-os/sdk';
const client = new VBOSClient({ apiKey: 'vbos_your_key_here' });

The CLI reads VBOS_API_KEY from the environment. The SDK library requires api_key as an explicit parameter to VBOSClient.__init__ and does not fall back to environment variables.