Use Your Codex CLI Credentials in OpenClaw: New Auth Provider Integration
If you're already using OpenAI's Codex CLI for coding tasks, you'll appreciate this quality-of-life improvement in OpenClaw 2026.2.17: native Codex CLI auth provider integration.
The Problem Before
Previously, if you used both Codex CLI and OpenClaw, you had to manage API keys separately. Your Codex CLI had its own authentication, and OpenClaw needed you to configure OpenAI credentials independently. This meant:
- Duplicate API key management
- Potential for configuration drift
- Extra setup steps when onboarding new machines
- Having to remember which tool used which credentials
What's New
PR #18009 (thanks @jiteshdhamaniya!) adds Codex CLI as a recognized auth provider in OpenClaw's extensions system. This means OpenClaw can now discover and use your existing Codex CLI authentication automatically.
When you've already authenticated with codex auth, OpenClaw can pick up those credentials without requiring you to re-enter your API key or configure a separate auth profile.
Why This Matters
This is part of a broader pattern in OpenClaw: meet developers where they are. Rather than forcing you to reconfigure tools you've already set up, OpenClaw tries to integrate with your existing workflow.
Other auth providers work similarly:
- Claude credentials from your environment
- API keys from various AI providers
- Now, Codex CLI's stored authentication
How It Works
The integration works through OpenClaw's auth-profiles system. When you make a request that needs OpenAI authentication:
- OpenClaw checks configured auth profiles
- If Codex CLI auth is available and no explicit key is set, it can use those credentials
- Token refresh and session management happen automatically
Getting Started
If you're already using Codex CLI:
- Update to OpenClaw 2026.2.17 or later
- Ensure you're authenticated with
codex auth - OpenClaw should automatically detect available credentials
No additional configuration needed in most cases.
For Extension Developers
If you're building OpenClaw extensions that need OpenAI access, this integration means your users have one less configuration hurdle. The auth-profiles system handles credential resolution, so your extension can simply request OpenAI capabilities without worrying about where the credentials come from.
Reference
- PR: #18009
- Release: v2026.2.17
- Contributor: @jiteshdhamaniya
Small integrations like this add up. The goal is an AI development environment that works with your existing tools rather than demanding you configure everything from scratch.
Comments (0)
No comments yet. Be the first to comment!