You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/agents/amp.mdx
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
2
title: "AMP"
3
3
description: "Run AMP in a secure E2B sandbox with full filesystem, terminal, and git access."
4
-
icon: "/images/icons/amp-code.svg"
4
+
icon: "/images/icons/amp.svg"
5
5
---
6
6
7
-
[AMP](https://ampcode.com) is Sourcegraph's coding agent with multi-model architecture and built-in code intelligence. E2B provides a pre-built `amp-code` template with AMP already installed.
7
+
[AMP](https://ampcode.com) is Sourcegraph's coding agent with multi-model architecture and built-in code intelligence. E2B provides a pre-built `amp` template with AMP already installed.
8
8
9
9
## CLI
10
10
11
11
Spin up a sandbox with the [E2B CLI](/docs/cli).
12
12
13
13
```bash
14
-
e2b sbx create amp-code
14
+
e2b sbx create amp
15
15
```
16
16
17
17
Once inside the sandbox, start AMP.
@@ -28,7 +28,7 @@ Use `-x` for non-interactive mode and `--dangerously-allow-all` to auto-approve
28
28
```typescript JavaScript & TypeScript
29
29
import { Sandbox } from'e2b'
30
30
31
-
const sandbox =awaitSandbox.create('amp-code', {
31
+
const sandbox =awaitSandbox.create('amp', {
32
32
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
33
33
})
34
34
@@ -43,7 +43,7 @@ await sandbox.kill()
43
43
import os
44
44
from e2b import Sandbox
45
45
46
-
sandbox = Sandbox.create("amp-code", envs={
46
+
sandbox = Sandbox.create("amp", envs={
47
47
"AMP_API_KEY": os.environ["AMP_API_KEY"],
48
48
})
49
49
@@ -62,7 +62,7 @@ sandbox.kill()
62
62
```typescript JavaScript & TypeScript
63
63
import { Sandbox } from'e2b'
64
64
65
-
const sandbox =awaitSandbox.create('amp-code', {
65
+
const sandbox =awaitSandbox.create('amp', {
66
66
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
67
67
timeoutMs: 600_000,
68
68
})
@@ -88,7 +88,7 @@ await sandbox.kill()
88
88
import os
89
89
from e2b import Sandbox
90
90
91
-
sandbox = Sandbox.create("amp-code", envs={
91
+
sandbox = Sandbox.create("amp", envs={
92
92
"AMP_API_KEY": os.environ["AMP_API_KEY"],
93
93
}, timeout=600)
94
94
@@ -119,7 +119,7 @@ Use `--stream-json` to get a real-time JSONL event stream with rich metadata —
119
119
```typescript JavaScript & TypeScript
120
120
import { Sandbox } from'e2b'
121
121
122
-
const sandbox =awaitSandbox.create('amp-code', {
122
+
const sandbox =awaitSandbox.create('amp', {
123
123
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
124
124
})
125
125
@@ -146,7 +146,7 @@ import os
146
146
import json
147
147
from e2b import Sandbox
148
148
149
-
sandbox = Sandbox.create("amp-code", envs={
149
+
sandbox = Sandbox.create("amp", envs={
150
150
"AMP_API_KEY": os.environ["AMP_API_KEY"],
151
151
})
152
152
@@ -178,7 +178,7 @@ AMP persists conversations as threads that can be resumed or continued with foll
178
178
```typescript JavaScript & TypeScript
179
179
import { Sandbox } from'e2b'
180
180
181
-
const sandbox =awaitSandbox.create('amp-code', {
181
+
const sandbox =awaitSandbox.create('amp', {
182
182
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
183
183
timeoutMs: 600_000,
184
184
})
@@ -209,7 +209,7 @@ import os
209
209
import json
210
210
from e2b import Sandbox
211
211
212
-
sandbox = Sandbox.create("amp-code", envs={
212
+
sandbox = Sandbox.create("amp", envs={
213
213
"AMP_API_KEY": os.environ["AMP_API_KEY"],
214
214
}, timeout=600)
215
215
@@ -238,23 +238,23 @@ sandbox.kill()
238
238
239
239
## Build a custom template
240
240
241
-
If you need to customize the environment (e.g. pre-install dependencies, add config files), build your own template on top of the pre-built `amp-code` template.
241
+
If you need to customize the environment (e.g. pre-install dependencies, add config files), build your own template on top of the pre-built `amp` template.
0 commit comments