File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
registry/coder/modules/claude-code/scripts Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,6 @@ function start_agentapi() {
8989
9090 # Build boundary args with conditional --unprivileged flag
9191 BOUNDARY_ARGS=(--log-dir " $ARG_BOUNDARY_LOG_DIR " )
92- if [ " ${ARG_BOUNDARY_UNPRIVILEGED:- true} " = " true" ]; then
93- BOUNDARY_ARGS+=(--unprivileged)
94- fi
9592 # Add default allowed URLs
9693 BOUNDARY_ARGS+=(--allow " *.anthropic.com" --allow " registry.npmjs.org" --allow " *.sentry.io" --allow " claude.ai" --allow " $ARG_CODER_HOST " )
9794
@@ -105,12 +102,15 @@ function start_agentapi() {
105102
106103 git clone https://github.com/coder/boundary
107104 cd boundary
108- git checkout yevhenii/proxy-v2
105+ git checkout yevhenii/proxy-v3
109106 go install ./cmd/...
110107
111- agentapi server --type claude --term-width 67 --term-height 1190 -- \
112- boundary " ${BOUNDARY_ARGS[@]} " -- \
113- claude " ${ARGS[@]} "
108+ BOUNDARY_ARGS+=(--proxy-port=8087)
109+
110+ agentapi server --allowed-hosts=" *" --type claude --term-width 67 --term-height 1190 -- \
111+ sudo -E env PATH=$PATH setpriv --inh-caps=+net_admin --ambient-caps=+net_admin --bounding-set=+net_admin /home/coder/go/bin/boundary " ${BOUNDARY_ARGS[@]} " -- \
112+ claude
113+ # "${ARGS[@]}"
114114 else
115115 agentapi server --type claude --term-width 67 --term-height 1190 -- claude " ${ARGS[@]} "
116116 fi
You can’t perform that action at this time.
0 commit comments