---
title: "Welcome to Autohand"
description: "Start with Autohand Code in the browser, terminal, editor, or on mobile. Choose an outcome, compare plans, and run a safe first coding task."
sidebar:
  label: "Welcome"
  icon: "house"
seo:
  title: "Documentation | Autohand AI - Guides, API Reference & Tutorials"
---

Autohand Code is an AI coding workspace for the browser, terminal, editor, and phone. Start in the browser with no local installation, or choose the surface that fits how you work.

**[Start in your browser](https://dev.autohand.ai/new)**

The easiest first experience: choose a repository and start from any modern browser. No local installation or provider key is required.

**[Choose a surface](/getting-started/first-session#choose-a-surface)**

Compare Web, CLI, editor, mobile, and SDK, then pick the one that fits how you work.

## Work in a desktop application

[Autohand Code Desktop](/working-with-autohand-code/code/desktop) is available for macOS, Windows, and Linux. Open a local project, choose a coding agent, inspect its diffs, and run your checks in the same workspace. [Install the app](/working-with-autohand-code/code/desktop/installation) or [follow the first-task walkthrough](/working-with-autohand-code/code/desktop/quickstart).

## Choose how you want to start [#choose-a-path-title]

Start with the outcome, then use Web, CLI, editor, mobile, or the SDK to reach it.

**Autohand Code**

### Delegate work in the tools you already use [#goal-panel-code]

Start with a repository task, steer the agent, and inspect the result before accepting any change.

1. **Choose a surface**

    Web, terminal, editor, or mobile.

2. **Open a repository**

    Open the repository you want Autohand to understand.

3. **Describe the outcome**

    Describe what you want and review each proposed change.

Start in **Autohand Dev**: choose a repository and start from any modern browser. [Start in your browser](https://dev.autohand.ai/new) · [Read the Autohand Dev guide](/guides/autohand-dev) · [Compare every surface](/getting-started/first-session#choose-a-surface)

**Programmable agents**

### Embed the coding agent in your own system [#goal-panel-sdk]

Create an API key, choose a host language, and stream prompts, events, approvals, and results from your application.

1. **Create your API key**

    Generate a one-time key in the [Autohand Console](https://console.autohand.ai/api-keys), then set it in the server environment.

    ```bash
    export AUTOHAND_API_KEY="your-api-key"
    ```

2. **Install the SDK for your host language**

    ```bash title="TypeScript"
    npm i @autohandai/agent-sdk
    ```

    ```bash title="Python"
    pip install autohand-sdk
    ```

    ```bash title="Go"
    go get github.com/autohandai/agent-sdk-go
    ```

    ```text title="Java"
    ai.autohand:agent-sdk-java:1.0.0-SNAPSHOT
    ```

    ```text title="Swift"
    Add AgentSDK to Package.swift
    ```

    ```bash title="Rust"
    cargo add autohand-sdk --git https://github.com/autohandai/code-agent-sdk-rust
    ```

    ```bash title="Ruby"
    bundle add autohand_sdk --github autohandai/code-agent-sdk-ruby
    ```

    ```bash title="C#/.NET"
    dotnet add package Autohand.CodeAgentSdk
    ```

    ```text title="C++"
    FetchContent: autohandai/code-agent-sdk-cpp
    ```

3. **Start a runtime and send the first prompt**

    ```ts title="main.ts"
    import { AutohandSDK } from "@autohandai/agent-sdk";

    const apiKey = process.env.AUTOHAND_API_KEY;
    if (!apiKey) throw new Error("AUTOHAND_API_KEY is required");

    const sdk = new AutohandSDK({ cwd: ".", apiKey, model: "fantail" });
    await sdk.start();
    await sdk.prompt({ message: "Review the current diff." });
    ```

    ```python title="main.py"
    import os
    from autohand_sdk import AutohandSDK

    async with AutohandSDK(
        cwd=".",
        api_key=os.environ["AUTOHAND_API_KEY"],
        model="fantail",
    ) as sdk:
        await sdk.prompt("Review the current diff.")
    ```

    ```go title="main.go"
    sdk := autohand.NewSDK(&autohand.Config{
        CWD: ".",
        APIKey: os.Getenv("AUTOHAND_API_KEY"),
        Model: "fantail",
    })
    sdk.Start(ctx)
    sdk.StreamPrompt(ctx, &autohand.PromptParams{Message: "Review the current diff."})
    ```

    ```java title="Main.java"
    if (System.getenv("AUTOHAND_API_KEY") == null) {
        throw new IllegalStateException("AUTOHAND_API_KEY is required");
    }

    AutohandSDK sdk = new AutohandSDK();
    sdk.start();
    sdk.setModel("fantail");
    sdk.streamPrompt(
        new PromptParams("Review the current diff."),
        event -> System.out.println(event)
    );
    ```

    ```swift title="main.swift"
    let apiKey = ProcessInfo.processInfo.environment["AUTOHAND_API_KEY"]!
    let provider = OpenAIProvider(
        apiKey: apiKey,
        baseURL: URL(string: "https://api.autohand.ai/v1")!
    )

    let agent = Agent(
        name: "Reviewer",
        instructions: "Review the current diff.",
        model: ModelID("fantail"),
        provider: provider
    )
    let result = try await Runner.run(
        agent: agent,
        prompt: "Find risky changes."
    )
    ```

    ```rust title="main.rs"
    std::env::var("AUTOHAND_API_KEY")
        .expect("AUTOHAND_API_KEY is required");

    let config = Config::from_env()
        .with_cwd(".")
        .with_model("fantail");

    let mut sdk = AutohandSdk::new(config);
    sdk.start().await?;
    sdk.prompt("Review the current diff.").await?;
    ```

    ```ruby title="main.rb"
    require "autohand_sdk"

    AutohandSDK.configure do |config|
      config.env_vars = {
        "AUTOHAND_API_KEY" => ENV.fetch("AUTOHAND_API_KEY")
      }
    end

    AutohandSDK::Client.open(cwd: ".", model: "fantail") do |sdk|
      puts sdk.prompt("Review the current diff.")
    end
    ```

    ```csharp title="Program.cs"
    _ = Environment.GetEnvironmentVariable("AUTOHAND_API_KEY")
        ?? throw new InvalidOperationException("AUTOHAND_API_KEY is required");

    var options = new AutohandOptions
    {
        WorkingDirectory = ".",
        Model = "fantail",
    };

    await using var sdk = new AutohandSdk(options);
    await sdk.StartAsync();
    await sdk.PromptAsync("Review the current diff.");
    ```

    ```cpp title="main.cpp"
    if (std::getenv("AUTOHAND_API_KEY") == nullptr) {
        throw std::runtime_error("AUTOHAND_API_KEY is required");
    }

    auto config = autohand::Config::from_environment()
        .with_cwd(".")
        .with_model("fantail");

    autohand::AutohandSdk sdk(config);
    sdk.start();
    sdk.prompt("Review the current diff.");
    ```

**Fantail** is the fast default for focused edits, review, and short coding loops. Use **Moa** for deeper context across architecture, migrations, and repository-wide work. [Compare Autohand models](/models) · [Open the SDK quickstart](/agent-sdk/quickstart)

**Extension system**

### Add trusted capabilities for your team [#goal-panel-extend]

Package reusable tools, skills, agents, or reviewed runtime behavior without mixing every capability into one extension model.

1. **Choose the smallest layer**

    Choose the smallest extension layer that fits.

2. **Define scope**

    Define its scope, permissions, and lifecycle.

3. **Validate locally**

    Validate locally before distributing it to a team.

**[Declarative tools and agents](/working-with-autohand-code/extensions/extension-api)**

Add reviewed capabilities with the versioned Extension API.

**[Agent Skills](/working-with-autohand-code/agent-skills)**

Package reusable instructions, references, and scripts.

**[MCP servers](/working-with-autohand-code/mcp-servers)**

Connect existing external tool servers to Autohand.

[Choose an extension model](/guides/extensions)

## Explore the docs [#explore-the-docs-title]

Move from concepts to repeatable practice, or jump directly to the details you need.

**[Guides](/guides)**

Understand models, workflows, integrations, security, and operating patterns.

**[Tutorials](/tutorials)**

Follow complete builds for coding, automation, modernization, and agent teams.

**[Integrations](/integrations)**

Connect work surfaces, agent protocols, cloud providers, and local model runtimes.

**[CLI reference](/working-with-autohand-code/cli-reference)**

Find every command, option, mode, and configuration surface in one place.

## Learn with Autohand Code Academy [#academy]

[Autohand Code Academy](https://academy.autohand.ai/?utm_source=docs&utm_medium=cta&utm_campaign=academy&utm_content=docs-home) has 17 free, self-paced courses on Autohand Code. Each one ends with a quiz and a certificate. Sign in with your Autohand account and choose **Start course**.

**[Autohand Code 101](https://academy.autohand.ai/courses/autohand-code-101/?utm_source=docs&utm_medium=cta&utm_campaign=academy&utm_content=autohand-code-101)**

Install the CLI, complete a real task, and learn to instruct, supervise and review an agent. 11 lessons.

Start the free course

**[Autohand Desktop 101](https://academy.autohand.ai/courses/autohand-desktop-101/?utm_source=docs&utm_medium=cta&utm_campaign=academy&utm_content=autohand-desktop-101)**

Install the preview, take a task from prompt to commit, and run agents in parallel worktrees. 13 lessons.

Start the free course

**[Autohand Dev 101](https://academy.autohand.ai/courses/autohand-dev-101/?utm_source=docs&utm_medium=cta&utm_campaign=academy&utm_content=autohand-dev-101)**

Point the agent at a repository, write tasks that can be checked, and review what comes back. 7 lessons.

Start the free course

**[AI fluency foundations](https://academy.autohand.ai/courses/ai-fluency-foundations/?utm_source=docs&utm_medium=cta&utm_campaign=academy&utm_content=ai-fluency-foundations)**

A plain-language introduction to language models, agents and the habits that keep work accurate. 9 lessons.

Start the free course

[Browse all courses](https://academy.autohand.ai/courses/?utm_source=docs&utm_medium=cta&utm_campaign=academy&utm_content=docs-home-all-courses)

## Know the platform [#platform-map-title]

The goal picker above chooses your starting path. This map shows how the broader Autohand product family fits together.

| Product | What it does |
| --- | --- |
| [Autohand Code](/working-with-autohand-code/cli) | The coding agent for terminal, editor, headless, and automated repository work. |
| [Code Agent SDK](/agent-sdk/overview) | Typed libraries for embedding Autohand agents in tools, services, and workflows. |
| [Slack](/integrations/slack) | A conversational surface for working with Autohand agents from team channels. |

:::tip[Build with the docs. Improve them with us.]
Every page has **Copy as Markdown**, **Open in Autohand Dev** and **Open in ChatGPT** actions, and a "Was this page helpful?" rating at the bottom. The full docs are also available as [llms.txt](https://docs.autohand.ai/llms.txt) for AI tools.
:::
