---
title: "Connect agents and choose models"
description: "Connect Autohand Code, Codex, Claude Code, Grok Build, Factory Droid, or Pi, then pick a model and reasoning effort for each task."
slug: "working-with-autohand-code/code/desktop/agents-and-models"
sidebar:
  label: "Agents and models"
---

## App, agent, and model

Three separate choices decide how a task runs:

- **Autohand Code Desktop** is the workspace: projects, threads, review, and panels.
- The **agent** reads files, runs tools, and does the work. Desktop works with Autohand Code, Codex, Claude Code, Grok Build, Factory Droid, and Pi.
- The **model** is chosen inside that agent, limited by what its account can use.

Your Autohand sign-in covers Autohand Code. Every other agent uses its own CLI and its own account. A model that appears in the picker still needs an account that can run it.

## Connect an agent

1. Open **Settings > Agent providers**, or **Choose your agents** in the welcome tour.
2. Turn on the agents you want to see in the model picker.
3. Read each agent's status: installed or not, signed in or not.
4. Install or sign in with the agent's own instructions. If the CLI lives somewhere unusual, set its binary path.
5. Refresh detection and confirm the agent is ready.

| Agent | Shown as | Sign-in |
| --- | --- | --- |
| Autohand Code | Autohand | Bundled. Uses your Autohand account. |
| Codex | Codex | `codex login` |
| Claude Code | Claude | Claude Code's own sign-in |
| Grok Build | Grok | Grok CLI's own sign-in |
| Factory Droid | Droid | Droid's own sign-in |
| Pi | Pi | Pi's own configuration |

Desktop ships Autohand Code CLI. It uses a working copy it finds on your machine or prepares its own, and keeps it up to date. On Windows, a CLI installed only in WSL is a different installation from one installed in Windows.

**Settings > Agent Accounts** manages your Autohand account and other agents' accounts in one place, including separate accounts for work and personal projects. Never paste API keys or login tokens into a chat.

## Pick a model

Open the model control at the bottom right of the composer.

<img className="ah-shot-light" src="/images/desktop/app/agents-light.webp" alt="Model picker with a row of agent tabs, a Search models field with Refresh, and Fantail and Moa listed with star buttons and Command-1 and Command-2 shortcuts." width="2880" height="1800" />
<img className="ah-shot-dark" src="/images/desktop/app/agents-dark.webp" alt="Model picker with a row of agent tabs, a Search models field with Refresh, and Fantail and Moa listed with star buttons and Command-1 and Command-2 shortcuts." width="2880" height="1800" />

The model picker on the Autohand tab with the Fantail and Moa models. The tabs switch between starred favorites and each connected agent.

1. Choose an agent tab, or the star tab for favorites.
2. Search for a model, or use **Refresh** to reload the agent's list.
3. Select the model. The number shortcuts shown beside each model pick it from the keyboard.
4. Star a model to keep it, with its effort level, in favorites.

An agent that is installed but not signed in shows **Sign in** in the picker.

## Reasoning effort

Where a model supports it, the control beside the model sets the reasoning effort. Some models show a list of levels, some a thinking option, and some nothing at all. A missing control means the model does not expose that option through this agent. When you switch models, Desktop reloads the effort levels before applying the one you picked.

Reasoning effort and permissions are separate. More reasoning does not grant more tool access.

Use a faster model for a well-defined mechanical task and a more capable one for an open-ended investigation. Keep the same acceptance checks either way.

## Defaults

- **Settings > General > Default provider** chooses the agent for new chats until you pick a model. New chats then reuse your most recent model and options.
- **Settings > Agent Preferences** sets new-thread defaults for Autohand, Codex, and Claude, such as the default mode.
- **Settings > Models & writing** chooses the Git writing style and model, and custom model names.

An existing thread keeps its own model and mode. After changing a default, start a new thread and check the composer.

## Switch agents mid-task

Changing the model inside the same agent keeps the session. **Hand off** moves the task to a different agent, in this thread or a new one. See [sessions and context](/working-with-autohand-code/code/desktop/sessions-and-context#hand-off-to-another-agent).

## If an agent is unavailable

Check the binary path, the agent's sign-in, your account's model access, and the error in the thread. A timed-out version check is not the same as "not installed". See [troubleshooting](/working-with-autohand-code/code/desktop/troubleshooting#provider-errors) before you reinstall a working CLI.
