Skip to content

OAuth setup fails for Pi, Codex, and OpenCode with AUTH_FAILED #49

Description

@dobleuber

Summary

setup --harness fails consistently for Pi Agent, Codex CLI, and OpenCode with the same PluginError[AUTH_FAILED] error. This prevents authentication and completion of MCP configuration for all three harnesses.

Environment

  • Node.js v22.22.3
  • pnpm 9.15.9
  • Plugin version 1.0.0
  • Local repository checkout on main
  • OpenCode 1.17.20
  • Pi MCP adapter was already installed

Reproduction

Pi Agent

Using the local nsolid-plugin instance directly (without npx):

pnpm plugin:materialize
pi install ./packages/pi-plugin --no-approve
nsolid-plugin setup --harness pi

The setup was attempted twice. Both attempts produced:

NodeSource setup — pi
 → Reading bundle config …  3 MCP servers; skills owned by harness package
 → Checking NodeSource login …  sign-in required
Setup failed for pi:
  - Authentication failed: PluginError[AUTH_FAILED]: Authentication failed. Please try again.
Suggestion: Re-run installation to retry OAuth.

Codex CLI

Using the local Codex marketplace and the local nsolid-plugin instance directly (without npx):

codex plugin marketplace add /home/dobleuber/Projects/nodesource/nsolid-plugin
codex plugin add nsolid-plugin@nodesource
nsolid-plugin setup --harness codex

Plugin installation succeeded, but setup produced:

NodeSource setup — codex
 → Reading bundle config …  16 skills, 3 MCP servers
 → Checking NodeSource login …  sign-in required
Setup failed for codex:
  - Authentication failed: PluginError[AUTH_FAILED]: Authentication failed. Please try again.
Suggestion: Re-run installation to retry OAuth.

OpenCode

OpenCode uses the direct CLI installation path. Using the local nsolid-plugin instance directly (without npx):

nsolid-plugin setup --harness opencode

Setup produced:

NodeSource setup — opencode
 → Reading bundle config …  16 skills, 3 MCP servers
 → Checking NodeSource login …  sign-in required
Setup failed for opencode:
  - Authentication failed: PluginError[AUTH_FAILED]: Authentication failed. Please try again.
Suggestion: Re-run installation to retry OAuth.

Expected behavior

The explicit setup command should complete the NodeSource OAuth flow and write the shared credentials, followed by harness-specific MCP configuration.

Observed behavior

Native/local plugin installation succeeds for Pi and Codex; OpenCode reaches the direct CLI setup path, but authentication fails with the same generic error for all three harnesses. No successful setup or MCP configuration was produced.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions