# Prime Agent

Source: https://docs.aicentos.com/en/clients/prime-agent

Language: en

> Connect aicentos in Prime Agent — currently only the API-key provider works, and the endpoint field is not publicly documented

Prime Agent is Prime Intellect's open-source terminal coding agent (written in Rust, MIT licensed), positioned as a self-improving RLM harness. It supports connecting external models with an API Key, but **the field for a custom Base URL is not publicly documented**, so what follows is split into "confirmed to work" and "you need to verify it yourself".

## Prerequisites

First create a dedicated key for Prime Agent in the console (naming it `prime-agent` is recommended).

```bash
curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh
```

Windows:

```powershell
irm https://app.primeintellect.ai/prime-agent/install.ps1 | iex
```

## Configuration to fill in

| Field          | Value                                                 |
| -------------- | ----------------------------------------------------- |
| Authentication | `/login` on first launch, choose an API-key provider  |
| API Key        | The key created in the console                        |
| Base URL       | `https://aicentos.com/v1` (field name to be verified) |
| Model          | A model name from the Model Gallery in the console    |

## Setup steps

On the first launch, run `/login` and choose to use an API Key rather than a subscription provider. This step is the path the official docs state explicitly.

Its known configuration file is `models.json`, and officially only the model-override form is published:

```json
{
  "providers": {
    "your-provider": {
      "modelOverrides": {
        "your-model-name": { "contextWindow": 128000 }
      }
    }
  }
}
```

`modelOverrides` only changes model parameters; **it is not an endpoint definition**. To change the endpoint you need to find the endpoint field in the provider selected at `/login` — the official repository README does not give the field name, so look at which keys exist in the configuration file generated after startup and fill them in accordingly rather than guessing.

## Test

```bash
prime-agent
```

Send one prompt in the session. An authentication error means the provider was not chosen correctly; a response with the wrong model name means the endpoint and the model are configured separately, so go back and check `models.json`.

## Notes

* **It is not a security sandbox**: it executes model-generated Python and commands with your user privileges, so do not run unfamiliar tasks on a machine holding production credentials.
* Telemetry is on by default; `PRIME_AGENT_TELEMETRY=0` turns it off.
* Use `NODE_EXTRA_CA_CERTS` when a corporate network needs a custom CA.
* The endpoint field is not publicly documented, so this is in a figure-it-out-yourself state. If you cannot get it working, switch to [Oh My Pi](https://docs.aicentos.com/en/clients/oh-my-pi) or [Gajae Code](https://docs.aicentos.com/en/clients/gajae-code), whose fields are explicit.

## Related links

* [prime-agent repository](https://github.com/PrimeIntellect-ai/prime-agent)