Skip to content

Expose OpenAI OAuth in AI settings#2401

Draft
Bortlesboat wants to merge 1 commit into
tinyhumansai:mainfrom
Bortlesboat:codex/openai-oauth-settings
Draft

Expose OpenAI OAuth in AI settings#2401
Bortlesboat wants to merge 1 commit into
tinyhumansai:mainfrom
Bortlesboat:codex/openai-oauth-settings

Conversation

@Bortlesboat
Copy link
Copy Markdown
Contributor

@Bortlesboat Bortlesboat commented May 21, 2026

Summary

  • add a ChatGPT OAuth control to Settings > AI > LLM that uses the existing openhuman.inference_openai_oauth_* RPCs
  • open the auth URL, accept the desktop redirect URL, and persist the OpenAI provider without storing an API key
  • keep OAuth auth profiles distinct from API-key profiles when loading provider state
  • add AIPanel and AI settings API coverage for the OAuth flow and profile handling

Verification

  • pnpm --dir app exec vitest run --config test/vitest.config.ts src/components/settings/panels/__tests__/AIPanel.test.tsx src/services/api/__tests__/aiSettingsApi.test.ts
  • pnpm --dir app compile
  • ./node_modules/.bin/prettier.cmd --check src/components/settings/panels/AIPanel.tsx src/components/settings/panels/__tests__/AIPanel.test.tsx src/services/api/aiSettingsApi.ts src/services/api/__tests__/aiSettingsApi.test.ts (from app/)
  • git diff --check

Notes

  • This surfaces the OpenAI/ChatGPT OAuth backend that already exists in core; Anthropic/Claude remains API-key based in the current codebase.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 610f598d-8b33-4395-adea-81629d981a72

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Bortlesboat Bortlesboat force-pushed the codex/openai-oauth-settings branch from fba56f5 to 1866c31 Compare May 21, 2026 02:16
@Bortlesboat Bortlesboat force-pushed the codex/openai-oauth-settings branch from 1866c31 to f756281 Compare May 21, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant