# Where an agent could move now, and with which model.

> Creates nothing.
> https://koi.dog/docs/api/agents/get-agent-move-options/

`GET /api/v1/agents/{id}/move-options` · Scope: `read`

Judges every target (stay where it is, a cloud worker, each paired machine) for the model choice in the query (default: the agent's own) and says for each whether it can take the agent now and why or why not: machine online with a free slot and the harness, the connection's scope and concurrency, and for the cloud the planner's caps, budget, start gates and base image. `movable` says whether the agent can be moved at all right now; `inProgress` is a move already under way.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The agent's id. |

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `connectionId` | `string` | no | Only those of this connection. At least 5 characters. |
| `model` | `string` | no | The model to judge the targets for, as `model` in `POST /agents/{id}/move`. At least 1 character. |
| `effort` | `enum` | no | The effort to judge the targets for, as `options.effort` in a move. One of `low`, `medium`, `high`, `xhigh`, `max`. |

## Response.

200 OK: a JSON object. The example has placeholder values.

## Request.

```sh
curl "https://app.koi.dog/api/v1/agents/$ID/move-options" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://app.koi.dog/api/v1/agents/${process.env.ID}/move-options`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    f"https://app.koi.dog/api/v1/agents/{os.environ['ID']}/move-options",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "agentId": "string",
  "movable": {
    "ok": false,
    "reason": "string"
  },
  "current": {
    "nodeId": "string",
    "nodeName": "string",
    "machine": "mac",
    "connectionId": "string",
    "harness": "claude-code",
    "model": "string",
    …
  },
  "choice": {
    "connectionId": "string",
    "connectionName": "string",
    "harness": "claude-code",
    "model": "string",
    "options": { … },
    "problem": "string"
  },
  "targets": [],
  "inProgress": {
  }
}
```
