Simplify OAuth documentation in README

This commit is contained in:
Chris Scott committed 2025-12-07 23:04:24 -05:00
1 parent 351437225a
commit 48b235d3da
1 file changed
+1 -28
+1 -28
View File
@@ -143,20 +143,11 @@ npm run dev
OpenCode WebUI supports OAuth authentication for select providers, offering a more secure and convenient alternative to API keys.
### Supported Providers
### Supported OAuth Providers
- **Anthropic (Claude)** - OAuth login with Claude Pro/Max accounts
- **GitHub Copilot** - OAuth device flow authentication
### OAuth vs API Keys
| Feature | OAuth | API Keys |
|---------|-------|----------|
| **Security** | High (no manual key handling) | Medium (requires secure storage) |
| **Setup** | One-time authorization flow | Manual key entry |
| **Refresh** | Automatic token refresh | Manual key rotation |
| **Expiration** | Handled automatically | Keys don't expire |
### Setting Up OAuth
1. **Navigate to Settings → Provider Credentials**
@@ -168,23 +159,5 @@ OpenCode WebUI supports OAuth authentication for select providers, offering a mo
5. **Complete authorization** in the browser or enter the provided code
6. **Connection status** will show as "Configured" when successful
### OAuth Flow Types
- **Auto Flow** (GitHub Copilot): Opens browser window, automatic completion
- **Code Flow** (Anthropic): Requires manual code entry from authorization page
### Troubleshooting OAuth
- **"Invalid authorization code"**: Start the OAuth flow again
- **"Access denied"**: Check provider permissions and try again
- **"Code expired"**: Authorization codes expire quickly, restart the flow
- **"Server error"**: Check internet connection and try again later
### Token Management
- OAuth tokens are stored securely in your workspace
- Tokens automatically refresh when expired
- Use "Update OAuth" to re-authorize if needed
- API keys can still be used alongside OAuth for the same provider