# Overview

Canonical URL: https://developers.iagenify.com/sdk/ref/agents/
Language: en

Create an agent, reopen one, list the account's sessions, and reach the two libraries. Three methods and two accessors.

Status: 3 methods · 2 libraries · create() makes no request

| Member | Does | Costs |
| --- | --- | --- |
| [create(options)](/sdk/ref/agents/create) | Builds an agent. No request. | nothing |
| [get(id, options)](/sdk/ref/agents/get) | Reopens a session. | nothing until it runs |
| [list({ limit })](/sdk/ref/agents/list) | The account's sessions, newest first. | nothing |
| [skills](/sdk/ref/agents/skills) | The skill library — account and this computer. | nothing |
| [subagents](/sdk/ref/agents/subagents) | The subagent library. | nothing |

```javascript
const pc = await api.storage.get();

const agent = api.agents.create({
  runtime: "local",
  machine: pc,
  model: "gemini-3.5-flash",
  mode: "ask",
  memory: true,
  onPermission: async ({ category }) => (category === "exec" ? "deny" : "once"),
});

const result = await agent.run({ message: "Summarise what changed this week." });
```

## Two engines behind one method {#two-engines}

| create() | Builds | The loop runs |
| --- | --- | --- |
| `runtime: "local"` | [LocalAgent](/sdk/ref/local-agent) | In your process |
| no `runtime` | [Agent](/sdk/ref/agent) | On the platform |

> **Reach for the local engine whenever you have a process**
>
> It has the larger tool set, the permission callback, checkpoints, sessions, skills and subagents. The server-side one exists for the case where nothing of yours is running — which is what a workflow step is.

## Creating costs nothing {#nothing-happens}

`create()` validates its options and builds an object. No request is made, no session is written, no credit is spent — the first `run()` is what starts anything.

The validation is strict and immediate, so a mistyped option fails where you wrote it rather than mid-task.

## The options, by subject {#options}

- [machine](/sdk/ref/agents/options/machine): Where the tools run.
- [model and thinking](/sdk/ref/agents/options/model): Which model, how hard it thinks, what it falls back to.
- [tools and library](/sdk/ref/agents/options/tools): Which of the 35, and which skills and subagents.
- [mode and permissions](/sdk/ref/agents/options/mode): What is allowed without asking.
- [budget and context](/sdk/ref/agents/options/budget): When it stops, and how much it may hold.
- [media](/sdk/ref/agents/options/media): Defaults for the four generators.
- [memory and sessions](/sdk/ref/agents/options/memory): Whether the conversation survives.
- [bridges](/sdk/ref/agents/options/bridges): A file system, a shell, terminals, custom tools.

- [Agent engine](/sdk/agent): How the loop works.
- [LocalAgent](/sdk/ref/local-agent): Every property and method.

```python
pc = api.storage.get()

agent = api.agents.create(
    runtime="local",
    machine=pc,
    model="gemini-3.5-flash",
    mode="ask",
    memory=True,
    on_permission=lambda request: "deny" if request["category"] == "exec" else "once",
)

result = agent.run(message="Summarise what changed this week.")
```
