sipeed/picoclaw · error
no project id stored. Try logging in again
Error message
no project id stored. Try logging in again
What it means
Validation guard in authModelsCmd: a google-antigravity credential exists and was refreshed if needed, but its ProjectID field is empty, so the models API call has no project to query. Usually means the credential predates project capture or the store entry was partially written; re-login is the prescribed fix.
Solutions
- Log out of google-antigravity and log in again so the credential captures the project id
- Verify with auth status that the provider entry is complete
- Check that the login flow's project-selection step was not skipped or cancelled
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at cmd/picoclaw/internal/auth/helpers.go:456 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/de78eb8cf4918e2f.
Report an issue: GitHub.
Appendix: source
Thrown at cmd/picoclaw/internal/auth/helpers.go:456
if err != nil || cred == nil {
return fmt.Errorf(
"not logged in to Google Antigravity.\nrun: picoclaw auth login --provider google-antigravity",
)
}
// Refresh token if needed
if cred.NeedsRefresh() && cred.RefreshToken != "" {
oauthCfg := auth.GoogleAntigravityOAuthConfig()
refreshed, refreshErr := auth.RefreshAccessToken(cred, oauthCfg)
if refreshErr == nil {
cred = refreshed
_ = auth.SetCredential("google-antigravity", cred)
}
}
projectID := cred.ProjectID
if projectID == "" {
return fmt.Errorf("no project id stored. Try logging in again")
}
fmt.Printf("Fetching models for project: %s\n\n", projectID)
models, err := providers.FetchAntigravityModels(cred.AccessToken, projectID)
if err != nil {
return fmt.Errorf("error fetching models: %w", err)
}
if len(models) == 0 {
return fmt.Errorf("no models available")
}
fmt.Println("Available Antigravity Models:")
fmt.Println("-----------------------------")
for _, m := range models {
status := "✓"
if m.IsExhausted {View on GitHub (pinned to 49183d7e8d)