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.Documentation Index
Fetch the complete documentation index at: https://docs.getspine.ai/llms.txt
Use this file to discover all available pages before exploring further.
Install
Download the system-prompt snippet:Download system prompt
spine.codex.md — append to your Codex system prompt or project instructionsAGENTS.md.
Set your API key
What it does
The system prompt teaches Codex:- When to call Spine — multi-source research, deliverable generation, competitive analyses
- The two-step pattern —
POST /v1/run→ pollGET /v1/run/{run_id} - How to pick a template based on the deliverable type
- How to present results —
final_outputtext + artifact download links
Non-interactive / CI usage
Three one-time setup steps are required for unattended Codex invocation:--skip-git-repo-checkis required when running outside a git repo; without it Codex refuses withNot inside a trusted directory.--full-autois tempting for automation but its sandbox blocks network — Codex cannot reachapi.getspine.aiunder that preset. Use--dangerously-bypass-approvals-and-sandboxor a custom sandbox policy that allows outbound HTTPS.< /dev/nullcloses stdin; without itcodex execblocks waiting for additional input even when the prompt is passed as an argument.
Example
For long-running production workflows, register a webhook instead of polling — see Webhooks. Poll loops inside
codex exec can exceed the turn budget for runs longer than 5–10 minutes.