For Agents
Compile and analyse source code with real compilers, list available languages and compilers, format code, and look up assembly opcode documentation. Open and unauthenticated.
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Compiler Explorer API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Compiler Explorer API.
List supported programming languages and the compilers available for each
Compile a source file with a specific compiler version and inspect the generated assembly
Run a CMake build with a chosen compiler and capture the output
Format source code through one of the registered formatters with selectable styles
GET STARTED
Use for: Compile this C++ snippet with GCC 13 and show the assembly, List all supported languages on Compiler Explorer, Format a Rust file using rustfmt, Look up what the x86-64 'movzx' instruction does
Not supported: Does not handle source-control hosting, package registry distribution, or end-to-end CI orchestration — use for ad-hoc compilation, formatting, and assembly inspection only.
Jentic publishes the only available OpenAPI specification for Compiler Explorer API, keeping it validated and agent-ready. The Compiler Explorer (godbolt.org) API exposes the same compilation and code-formatting service that powers the popular interactive site at godbolt.org. It lists supported languages, compilers, libraries, and tools; compiles and CMake-builds source code against any registered compiler; formats source through configurable formatters; resolves shortlink IDs; and looks up documentation for individual assembly opcodes. The API is unauthenticated and ideal for AI agents that need to validate or analyse code against real compilers.
Look up the documentation for a specific assembly opcode and instruction set
Resolve a Compiler Explorer shortlink ID to its underlying source and configuration
Patterns agents use Compiler Explorer API for, with concrete tasks.
★ Code Review Assembly Inspection
Reviewers paste a hot-path function into the Compiler Explorer API and request the generated assembly to confirm whether a refactor preserved or improved code generation. POST /compiler/{compilerId}/compile takes the source plus compiler flags and returns assembly output, diagnostics, and timing.
Compile the provided C++ function with GCC 13 and -O2 and return the generated x86-64 assembly.
Cross-Compiler Compatibility Check
Library maintainers test a small reproduction across many compilers to confirm a fix works under GCC, Clang, and MSVC. The /compilers and /compilers/{languageId} endpoints enumerate every available compiler and version, so an agent can iterate the same source file across the matrix.
Compile the test snippet against the latest 5 GCC versions and the latest 5 Clang versions and report which fail.
Code Formatting at Scale
An agent normalises C, C++, or Rust source files to the team's house style by calling /format/{formatter}. The formatter is chosen from /formats and applied consistently across pull requests so reviewers focus on logic instead of whitespace.
Format every staged C++ file in the PR using clang-format with the LLVM style and write the results back.
AI Agent Code Verification
An AI coding agent uses Jentic to compile and check its generated code before returning it to the user. The agent searches for the compile operation, loads the schema, posts the candidate source, and only proposes fixes that compile cleanly under the requested compiler.
Search Jentic for 'compile c++ with godbolt', load the schema, compile the agent's draft snippet with GCC 13, and refine until diagnostics are empty.
13 endpoints — jentic publishes the only available openapi specification for compiler explorer api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/languages
List supported programming languages
/compilers
List all available compilers
/compilers/{languageId}
List compilers for a specific language
/compiler/{compilerId}/compile
Compile source and return assembly
/compiler/{compilerId}/cmake
Run a CMake build
/formats
List available source formatters
/format/{formatter}
Format a source body with a chosen formatter
/asm/{instructionSet}/{opcode}
Look up an assembly opcode's documentation
/languages
List supported programming languages
/compilers
List all available compilers
/compilers/{languageId}
List compilers for a specific language
/compiler/{compilerId}/compile
Compile source and return assembly
/compiler/{compilerId}/cmake
Run a CMake build
Three things that make agents converge on Jentic-routed access.
Credential isolation
Compiler Explorer is unauthenticated, so Jentic does not store credentials for it. Calls are proxied through Jentic for unified logging and rate-limit handling alongside authenticated APIs.
Intent-based discovery
Agents search by intent (e.g. 'compile c++ with godbolt') and Jentic returns matching Compiler Explorer operations with their input schemas, so the agent can call the right endpoint without reading the GitHub Markdown.
Time to first call
Direct Compiler Explorer integration: half a day for endpoint shapes and JSON conventions. Through Jentic: under 30 minutes — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
GitHub REST API
GitHub holds the source files that get compiled or formatted via Compiler Explorer.
Pair GitHub with Compiler Explorer when the agent fetches source from a repository, compiles it, and writes back diagnostics as a check run.
Specific to using Compiler Explorer API through Jentic.
Why is there no official OpenAPI spec for Compiler Explorer API?
Compiler Explorer documents its endpoints in a Markdown file inside the GitHub repository but does not ship an OpenAPI specification. Jentic generates and maintains this spec so AI agents and developers can call Compiler Explorer API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the Compiler Explorer API use?
The API is unauthenticated. There is no API key or bearer token required for any endpoint. Jentic still proxies the call so usage analytics and rate-limit handling stay consistent across APIs.
Can I compile code with the Compiler Explorer API?
Yes. POST /compiler/{compilerId}/compile compiles a source body with the chosen compiler and flags and returns assembly output, diagnostics, and execution metadata. POST /compiler/{compilerId}/cmake performs a CMake build.
What are the rate limits for the Compiler Explorer API?
The OpenAPI spec does not declare numeric rate limits. The hosted godbolt.org service applies fair-use throttling; in practice, batch compile requests sequentially and back off on HTTP 429 responses.
How do I look up an assembly opcode through Jentic?
Run a Jentic search for 'godbolt opcode docs', load the schema for GET /asm/{instructionSet}/{opcode}, and execute it with the instruction set and opcode name. Install with pip install jentic and chain search, load, and execute.
Does the Compiler Explorer API support code formatting?
Yes. GET /formats lists available formatters and POST /format/{formatter} applies the chosen formatter to a source body, with style options for tools like clang-format and rustfmt.
/formats
List available source formatters
/format/{formatter}
Format a source body with a chosen formatter
/asm/{instructionSet}/{opcode}
Look up an assembly opcode's documentation