Skip to content
Models
PLAN Free $0/mo PLAN Pro $20/mo PLAN Max $200/mo PLAN Teams $80/mo min + $40/seat Cognition FrontierCode (Oct 28) — score · cost per task Claude Opus 5.5 54.6% · $0.80/task Claude Fable 5 53.5% · $13.09/task Claude Opus 5 53.4% · $4.31/task GPT-6 Astra 53.3% · $4.59/task Claude Sonnet 5.5 52.1% · $1.59/task Claude Fable 5.1 50.9% · $3.28/task GPT-6.1 Sol 50.2% · $0.36/task SWE-2 50.0% · $1.18/task GPT-6 Sol 49.3% · $2.07/task Grok 4.6 48.0% · $2.88/task SWE-1.7 42.0% · $1.97/task SWE-1.6 9.4% · $0.49/task Devin launches Devin Apps, private web tools hosted on its cloud compu… Devin adds free SWE‑2 sessions and desktop access to Teams plan Gemini 4 Hydrogen launches in Devin Desktop and CLI, matching GPT‑6.1 … Basis reduces 20‑hour accounting process to 30 minutes with Devin Clou… Claude Mythos 5.2 added to Devin Security with benchmark score of 73.5 Gemini 4 Carbon added to Devin Desktop and CLI, scores 40% on Frontier… Claude Fable 5.2 added to Devin, leads FrontierCode 2.0 benchmark with… Devin offers 50% off Teams plan for users migrating from competing cod… PLAN Free $0/mo PLAN Pro $20/mo PLAN Max $200/mo PLAN Teams $80/mo min + $40/seat Cognition FrontierCode (Oct 28) — score · cost per task Claude Opus 5.5 54.6% · $0.80/task Claude Fable 5 53.5% · $13.09/task Claude Opus 5 53.4% · $4.31/task GPT-6 Astra 53.3% · $4.59/task Claude Sonnet 5.5 52.1% · $1.59/task Claude Fable 5.1 50.9% · $3.28/task GPT-6.1 Sol 50.2% · $0.36/task SWE-2 50.0% · $1.18/task GPT-6 Sol 49.3% · $2.07/task Grok 4.6 48.0% · $2.88/task SWE-1.7 42.0% · $1.97/task SWE-1.6 9.4% · $0.49/task Devin launches Devin Apps, private web tools hosted on its cloud compu… Devin adds free SWE‑2 sessions and desktop access to Teams plan Gemini 4 Hydrogen launches in Devin Desktop and CLI, matching GPT‑6.1 … Basis reduces 20‑hour accounting process to 30 minutes with Devin Clou… Claude Mythos 5.2 added to Devin Security with benchmark score of 73.5 Gemini 4 Carbon added to Devin Desktop and CLI, scores 40% on Frontier… Claude Fable 5.2 added to Devin, leads FrontierCode 2.0 benchmark with… Devin offers 50% off Teams plan for users migrating from competing cod…

Lesson 2.1 · Your first session · 3 of 8

Set up Devin's environment before your first task

Connect your repository, let Devin propose its own setup, and understand the snapshot every session starts from. This is the step that decides whether Devin can check its own work.

Checked against Devin's documentation on 2026-11-12

After this lesson you can

  • Connect a source control provider and give Devin access to a repository
  • Have Devin propose and build its own environment
  • Explain what a snapshot is and why session changes do not persist

Most disappointing first sessions fail for the same reason: Devin was handed a task before it had an environment where it could build and test the project. Do the setup first.

From an empty account to a ready environment
1Connect source controlSettings > Connections. Choose the repositories Devin can access.2Ask Devin to set itself upSend “Set up your environment for this repo.”3Approve the suggestionsDevin proposes a blueprint as cards in the timeline.4Devin builds the snapshotFuture sessions boot from this image.5Add secrets if neededStored encrypted. Devin cannot discover credentials on its own.
Read the steps as text
  1. Connect source control. Settings > Connections. Choose the repositories Devin can access.
  2. Ask Devin to set itself up. Send “Set up your environment for this repo.”
  3. Approve the suggestions. Devin proposes a blueprint as cards in the timeline.
  4. Devin builds the snapshot. Future sessions boot from this image.
  5. Add secrets if needed. Stored encrypted. Devin cannot discover credentials on its own.
  1. Connect source control. Settings > Connections. Choose the repositories Devin can access.
  2. Ask Devin to set itself up. Send “Set up your environment for this repo.”
  3. Approve the suggestions. Devin proposes a blueprint as cards in the timeline.
  4. Devin builds the snapshot. Future sessions boot from this image.
  5. Add secrets if needed. Stored encrypted. Devin cannot discover credentials on its own.

1. Connect your source control

Go to Settings > Connections and connect GitHub, GitLab, Bitbucket or Azure DevOps. During setup you select the repositories Devin can access. Devin cannot clone or build a repository until this access exists. On Enterprise, an admin connects the provider and assigns repositories to each organization.

2. Let Devin propose the setup

Start a session and send this prompt:

Set up your environment for this repo.

Devin inspects the codebase and works out the tools, runtimes and dependencies it needs. It then proposes a blueprint, shown as suggestion cards in the session timeline. Approve the cards you want.

3. The snapshot

Devin runs a build from the approved blueprint. The result is a snapshot, which the docs describe as a “frozen, bootable image of the environment.” Four rules follow from that:

  • Every session boots a fresh copy of the snapshot, so each one starts from the same clean state.
  • Changes made during a session do not persist back to the snapshot.
  • When the configuration changes, a new snapshot is built automatically.
  • Each organization has one active snapshot per platform. Linux is the default, and Windows or macOS can be added.

The second rule explains a common surprise. Something Devin installed in one session is gone in the next. That is by design. If you need it every time, put it in the configuration.

4. Secrets and settings

Values that are not sensitive go in the blueprint as environment variables. Sensitive values go in the blueprint editor’s Secrets tab, where they are stored encrypted. The docs are direct about why this matters: Devin cannot discover credentials on its own.

Why this is worth the time

Once the environment builds, Devin can run your lint, your compiler and your tests as part of its normal work. An agent that can run the test suite behaves very differently from one that can only write code that looks right.

Next

With the environment ready, the next lesson runs a first task: plan it in Ask mode, then hand it to Agent mode.

Check what you learned

3 questions. Nothing is recorded.

  1. 1. Where do you connect GitHub, GitLab, Bitbucket or Azure DevOps?
    Show the answer

    Settings > Connections. Source control is connected once under Settings > Connections, where you also choose which repositories Devin can access.

  2. 2. Devin installs a tool during a session. Is it there in the next session?
    Show the answer

    No. Each session boots a fresh copy of the snapshot. Changes made during a session do not persist back to the snapshot. Anything permanent belongs in the environment configuration.

  3. 3. What causes a new snapshot to be built?
    Show the answer

    A change to the environment configuration. A new snapshot is built automatically when your configuration changes.

Sources

  1. Repo setup — docs.devin.ai
  2. Environment — docs.devin.ai
  3. Your first session — docs.devin.ai

From Devin Central — subscribe for Devin news, features & tutorials. Devin is a trademark of Cognition.