Docs
Checking Raims account
All agents
OpenAI

Codex + Raims

OpenAI's coding agent for building and reviewing your Raims integration in the terminal, editor, or cloud.

TerminalExtensionCloud

Already using this agent? Go to project context and keep your existing setup. This quick start uses the CLI; the official links also cover the editor, desktop app, and cloud.

Quick start

  1. Install Codex

    With Node.js and npm available, install the CLI:

    Shell
    npm install -g @openai/codex@latest

    The official CLI guide also covers Windows, macOS, and Linux installers. To use the desktop app, editor, or cloud, follow OpenAI's quickstart.

  2. Open your application folder

    From the root of the project you want to integrate with Raims, run:

    Shell
    codex

    Complete the authentication requested by Codex. Your agent account and Raims API key serve different purposes.

  3. Provide Raims context

    Ask Codex to read the documentation index and find the authentication and charges guides. The consolidated documentation is also available as a reference.

  4. Try a prompt

    Read https://docs.raims.com/llms.txt and the authentication and charges guides.
    Inspect this application's backend and propose a plan to retrieve an existing
    Sandbox charge with GET /v1/charges/{id}. Prepare an example that loads the
    key from protected server configuration. Do not send requests or use real
    credentials. Show your sources and the files you intend to change before editing.

Project context

Add these instructions to AGENTS.md at your application's root, preserving any existing guidance. Codex reads AGENTS.md files when starting a session and also considers more specific directory instructions.

The instruction file belongs with your project. This tree shows its location:

AGENTS.md
Markdown
# Raims integration

- Read https://docs.raims.com/llms.txt before choosing endpoints and fields.
- Use https://docs.raims.com/llms-full.txt for the complete documentation.
- API base URL: https://api.raims.com.
- In Raims product installation examples, select the latest stable version
  through the package manager (`latest` where supported).
- Prepare Sandbox examples with Bearer authentication on the backend.
- Keep the key in protected server configuration. Do not put secrets in code,
  prompts, logs, or browser applications.
- Explain the plan and request approval before sending API requests.

After saving, start a new project session to load the instructions.

Check the setup

Ask Codex to summarize the active instructions, list the guides it read, and explain where the application will load the key. Review the plan and code before approving a test.

Reading the documentation does not authenticate your application. Requests use a Raims API key for the intended company and environment, stored in the private part of your system.

Recognize a completed setup

Expected result of the prompt

A reviewable plan to retrieve an existing Sandbox charge, with public sources and proposed backend files. The prompt asks for planning only, with no API request and no real credential in the chat.

CheckWhat the plan should show
Project instructionsThe agent considered AGENTS.md and kept the application's existing conventions.
SourcesAuthentication and charges guides, with the links it actually read.
Environment and endpointSandbox and GET /v1/charges/{id}, using an ID from your integration.
SecretA protected backend configuration point, without a key in code or prompts.
Proposed workThe files to change and the result to inspect before a test is authorized.

If an item is missing, ask the agent to complete the plan before editing or authorizing a request. If it could not read a source, provide the relevant public excerpt and keep the missing information explicit.

Common issues

Official sources