OpenCode Codex Auth Plugin

Access GPT-5 Codex through your ChatGPT Plus/Pro subscription

Download as .zip Download as .tar.gz View on GitHub

Privacy & Data Handling

This page explains how the OpenCode OpenAI Codex Auth Plugin handles your data and protects your privacy.

Overview

This plugin prioritizes user privacy and data security. We believe in transparency about data handling and giving you full control over your information.


What We Collect

Nothing. This plugin does not collect, store, or transmit usage data to third parties.


Data Storage

All data is stored locally on your machine:

OAuth Tokens

Cache Files

Debug Logs


Data Transmission

Direct to OpenAI

All API requests go directly from your machine to OpenAI’s servers:

What Gets Sent to OpenAI

When you use the plugin, the following is transmitted to OpenAI:

Note: This is identical to what the official OpenAI Codex CLI sends.

What Does NOT Get Sent


Third-Party Services

GitHub API

The plugin fetches Codex instructions from GitHub:

OpenAI Services

All interactions with OpenAI go through:

See OpenAI Privacy Policy for how OpenAI handles data.


Your Data Rights

You have complete control over your data:

Delete OAuth Tokens

opencode auth logout
# Or manually:
rm ~/.opencode/auth/openai.json

Delete Cache Files

rm -rf ~/.opencode/cache/

Delete Logs

rm -rf ~/.opencode/logs/codex-plugin/

Revoke OAuth Access

  1. Visit ChatGPT Settings → Authorized Apps
  2. Find “OpenCode” or “Codex CLI”
  3. Click “Revoke”

This immediately invalidates all access tokens.


Security Measures

Token Protection

PKCE Flow

The plugin uses PKCE (Proof Key for Code Exchange) for OAuth:

HTTPS Encryption

All network communication uses HTTPS:


Compliance

OpenAI’s Privacy Policy

When using this plugin, you are subject to:

Your responsibility: Ensure your usage complies with OpenAI’s policies.

GDPR Considerations

This plugin:

However, data sent to OpenAI is subject to OpenAI’s privacy practices.


Transparency

Open Source

The entire plugin source code is available at:

You can:

No Hidden Behavior


Questions?

For privacy-related questions:


Last Updated: 2025-10-12

Back to: Documentation Home Getting Started