Skip to main content
Codex CLI is OpenAI’s terminal-based coding agent. Give it a system prompt that includes Spine’s API pattern and it will delegate research-heavy tasks to Spine.

Install

Download the system-prompt snippet:
curl -o spine-codex-prompt.md \
  https://docs.getspine.ai/static/agent-files/spine.codex.md

Download system prompt

spine.codex.md — append to your Codex system prompt or project instructions
Then append it to your Codex system instructions, or paste it into your project’s AGENTS.md.

Set your API key

export SPINE_API_KEY="sk_spine_..."
Create a key at platform.getspine.ai/keys.

What it does

The system prompt teaches Codex:
  1. When to call Spine — multi-source research, deliverable generation, competitive analyses
  2. The two-step patternPOST /v1/run → poll GET /v1/run/{run_id}
  3. How to pick a template based on the deliverable type
  4. How to present resultsfinal_output text + artifact download links

Example

You: Create a market analysis of European fintech APIs and output as a slide deck

Codex: I'll use the Spine API with template=slides.

  curl -X POST https://api.getspine.ai/v1/run \
    -H "X-API-KEY: $SPINE_API_KEY" \
    -F "prompt=Market analysis of European fintech APIs" \
    -F "template=slides"

  [polling... completed in 14m 32s]

  Results:
  - European_Fintech_APIs.pptx → https://...
  - Credits consumed: 41