For Codex, the README recommends running “codex” and selecting “Sign in with ChatGPT” to use Codex as part of a Plus, Pro, Business, Edu, or Enterprise plan. You can also use an API key, with some extra setup. On the Codex pricing page, OpenAI says the API key option suits automation in shared environments such as CI, works in the CLI, SDK, and IDE extension, has no cloud features, and is billed at API pricing.
For Claude Code, the overview says most surfaces require a Claude subscription or an Anthropic Console account, and that the terminal CLI also supports third-party providers. It asks you to log in on first use. If you set the ANTHROPIC_API_KEY environment variable and approve the key when asked, it skips the login prompt. The desktop app requires a paid subscription. Quotas and terms stay with each provider, and Arara Code is not affiliated with OpenAI or Anthropic.