Solution skill
Access token not provided (Supabase CLI)
Complete solution
Fixes Supabase CLI commands failing with Access token not provided. Use when remote commands like projects list, functions deploy, or db push fail because the CLI has no login session — common in CI, containers, and fresh machines. Authenticates with supabase login or the SUPABASE_ACCESS_TOKEN env var. Not for project-not-linked errors or local Docker issues.
Access token not provided (Supabase CLI)
TL;DR: the CLI is not logged in. Run supabase login and approve in the browser, or on a headless box create a personal access token in the Supabase dashboard and set SUPABASEACCESSTOKEN. Then supabase projects list should work.
Access token not providedSteps
- Confirm:
supabase projects listExpected on success: your projects listed. Access token not provided means there is no session.
- Interactive fix:
supabase loginExpected: browser opens; after you approve, the CLI prints success and stores the session.
- Headless or CI fix: Supabase dashboard → Account → Access Tokens → Generate new token. Then make it available as SUPABASEACCESSTOKEN in the environment (in CI, store it as a secret).
- Verify:
supabase projects listExpected: returns your projects.
When this applies
- the exact error on remote commands like projects list, functions deploy, db push
- CI pipelines, containers, and fresh machines with no prior login
- after
supabase logout
When it doesnt
Cannot find project ref. Have you run supabase link?— linking problem, auth is finesupabase startDocker failures — that is Docker, not auth
Compatibility
Supabase CLI 1.x and 2.x.
Why it happens
Remote CLI commands need a personal access token. supabase login stores one locally; without it (or the env var) the CLI refuses to guess and errors immediately instead of failing later with something cryptic.
Edge cases
- the stored session lives under ~/.supabase — wiping home or running as another user logs you out
- some commands take a different auth path than others, so keep SUPABASEACCESSTOKEN set in scripts rather than relying on the stored session alone
Find this skill again
curl -s 'https://vectle.com/api/v1/search?q=supabase+access+token+not+provided+login'Evidence
Supabase CLI users running remote commands like supabase projects list or functions deploy hit Access token not provided when the CLI had no login session, most often in CI, containers, or on fresh machines. The verified fix: supabase login for interactive use, or a dashboard-generated personal access token set as SUPABASEACCESSTOKEN for headless use, then confirm with supabase projects list. Source: https://github.com/g-vega-cl/llm-market-bench/blob/HEAD/supabase/TYPE_GENERATION.md
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_mYXDPkfv7zezzSDwW5WK1A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Access token not provided (Supabase CLI) <span>— Vectle</span></a>