> ## Documentation Index
> Fetch the complete documentation index at: https://www.edenai.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Open Code Review

> Use Open Code Review with Eden AI to review your code with 500+ AI models through one API.

export const TechArticleSchema = ({title, description, path, articleSection, about, proficiencyLevel = "Beginner", dependencies, keywords = [], datePublished, dateModified, image, inLanguage = "en"}) => {
  const baseUrl = "https://www.edenai.co/docs";
  const canonicalUrl = `${baseUrl}/${path}`.replace(/\/+$/, "");
  const ogParams = new URLSearchParams({
    division: articleSection || "",
    title: title || "",
    description: description || ""
  });
  const resolvedImage = image || `https://edenai.mintlify.app/_mintlify/api/og?${ogParams.toString()}`;
  const data = {
    "@context": "https://schema.org",
    "@type": "TechArticle",
    "@id": `${canonicalUrl}#techarticle`,
    mainEntityOfPage: {
      "@type": "WebPage",
      "@id": canonicalUrl
    },
    headline: title,
    name: title,
    description: description,
    url: canonicalUrl,
    inLanguage: inLanguage,
    isPartOf: {
      "@type": "WebSite",
      name: "Eden AI Documentation",
      url: baseUrl
    },
    author: [{
      "@type": "Organization",
      name: "Eden AI",
      url: "https://www.edenai.co/"
    }],
    publisher: {
      "@type": "Organization",
      name: "Eden AI",
      url: "https://www.edenai.co/",
      logo: {
        "@type": "ImageObject",
        url: "https://www.edenai.co/assets/logo.png"
      }
    }
  };
  if (articleSection) data.articleSection = articleSection;
  if (about) data.about = {
    "@type": "Thing",
    name: about
  };
  if (proficiencyLevel) data.proficiencyLevel = proficiencyLevel;
  if (dependencies) data.dependencies = dependencies;
  if (keywords && keywords.length) data.keywords = keywords;
  if (datePublished) data.datePublished = datePublished;
  if (dateModified) data.dateModified = dateModified;
  data.image = Array.isArray(resolvedImage) ? resolvedImage : [resolvedImage];
  const json = JSON.stringify(data);
  const schemaId = `techarticle-${canonicalUrl}`;
  React.useEffect(() => {
    if (typeof document === "undefined") return;
    document.querySelectorAll(`script[data-schema-id="${schemaId}"]`).forEach(n => n.remove());
    const script = document.createElement("script");
    script.type = "application/ld+json";
    script.dataset.schemaId = schemaId;
    script.textContent = json;
    document.head.appendChild(script);
    return () => script.remove();
  }, [json, schemaId]);
  return null;
};

<TechArticleSchema title={"Open Code Review"} description={"Use Open Code Review with Eden AI to review your code with 500+ AI models through one API."} path="v3/integrations/open-code-review" articleSection="Coding Agents" about={"AI Code Review Integration"} proficiencyLevel="Intermediate" keywords={["Eden AI", "AI API", "Open Code Review", "Alibaba", "Code Review"]} datePublished="2026-07-16T00:00:00Z" dateModified="2026-07-16T00:00:00Z" />

Use Open Code Review with Eden AI to review your code with 500+ AI models through one API.

## Overview

Open Code Review (`ocr`) is Alibaba's open-source AI code-review tool. It reviews commits and pull requests through a unified provider system, and **Eden AI ships as a built-in provider preset** — supply a key and review your code with OpenAI, Anthropic, Google, Mistral and 500+ models, behind one key, with EU-based, GDPR-aligned inference and unified billing.

## Installation

<CodeGroup>
  ```bash npm theme={null}
  npm install -g @alibaba-group/open-code-review
  ```

  ```bash Install script theme={null}
  curl -fsSL https://raw.githubusercontent.com/alibaba/open-code-review/main/install.sh | sh
  ```
</CodeGroup>

## Configuration

Eden AI is a built-in preset, so you only need a key. Configure it interactively:

<CodeGroup>
  ```bash Interactive theme={null}
  ocr config provider   # select "edenai"
  ocr config model      # pick an Eden AI model, e.g. anthropic/claude-sonnet-5
  ```
</CodeGroup>

Or write the config directly (scripts / CI):

<CodeGroup>
  ```bash CLI theme={null}
  ocr config set provider edenai
  ocr config set providers.edenai.api_key YOUR_EDEN_AI_API_KEY
  ocr config set providers.edenai.model anthropic/claude-sonnet-5
  ```
</CodeGroup>

The `edenai` preset supplies the base URL (`https://api.edenai.run/v3`) and the OpenAI-compatible protocol automatically. Run `ocr llm providers` to list all built-in providers. If `EDEN_AI_API_KEY` is set in your environment, `ocr` picks it up automatically.

## Available Models

Pick any Eden AI model using the `provider/model` format:

**OpenAI**

* `openai/gpt-5.5`
* `openai/gpt-5-mini`

**Anthropic**

* `anthropic/claude-sonnet-5`
* `anthropic/claude-opus-4-8`

**Google**

* `google/gemini-2.5-pro`
* `google/gemini-3.5-flash`

**Mistral**

* `mistral/mistral-large-2512`
* `mistral/mistral-small-2603`

## Environment Variables

<CodeGroup>
  ```bash .env theme={null}
  EDEN_AI_API_KEY=your_api_key_here
  ```
</CodeGroup>

## Next Steps

* [Chat Completions](/docs/v3/llms/chat-completions) - Core LLM endpoint
* [List LLM Models](/docs/v3/llms/listing-models) - Browse available providers and models
* [OpenAI SDK (Python)](/docs/v3/integrations/openai-sdk-python) - Direct SDK usage
