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
{{ message }}
Repository navigation
Commit 98c6040
Browse filesBrowse the repository at this point in the historyBrowse files
description="How the worker hands agent_relay_credential to the Cursor CLI. worker_token passes the per-user sub-token as --auth-token. api_key exports the pool's service-account key as CURSOR_API_KEY, which is the only form the CLI accepts it in; Agent Relay sets this to api_key for pools with insecure_shared_token. A human never fills it in."
196
-
type="string"
197
-
mutable=true
198
-
default="worker_token"
199
-
order=1006
200
-
styling=jsonencode({
201
-
disabled =true
202
-
placeholder ="Set by Agent Relay on dispatch"
203
-
})
204
-
205
-
option {
206
-
name="Worker token (--auth-token)"
207
-
value="worker_token"
208
-
}
209
-
option {
210
-
name="Service-account API key (CURSOR_API_KEY)"
211
-
value="api_key"
212
-
}
213
-
}
214
-
215
191
data"coder_parameter""agent_relay_credential" {
216
192
name="agent_relay_credential"
217
193
display_name="Agent Relay credential"
@@ -220,7 +196,7 @@ data "coder_parameter" "agent_relay_credential" {
220
196
ephemeral=true
221
197
mutable=true
222
198
default=""
223
-
order=1007
199
+
order=1006
224
200
styling=jsonencode({
225
201
disabled =true
226
202
mask_input =true
@@ -229,12 +205,10 @@ data "coder_parameter" "agent_relay_credential" {
229
205
}
230
206
231
207
# CURSOR_AGENT_WORKER_ID is the Cursor CLI's contract; do not rename it.
232
-
# The credential travels under an Agent Relay name and the supervisor
233
-
# decides how to hand it to the CLI from the stamped credential kind: a
234
-
# per-user worker token has no CLI env var and goes on the command line
235
-
# as --auth-token; a team service-account key is only accepted as
236
-
# CURSOR_API_KEY. Each is rejected through the other door, which is why
237
-
# the relay stamps the kind alongside the credential.
208
+
# The worker token has no CLI env var (only the --auth-token flag), so it
209
+
# travels under an Agent Relay name and the script passes it on the
210
+
# command line. It is never CURSOR_API_KEY: the CLI would treat the
0 commit comments