@@ -71,20 +71,28 @@ native Vertex endpoint and request format for its selected model.
7171Copy the example profile and set its top-level ` binaries ` to the absolute paths
7272of the clients that will call Vertex AI from your sandbox image. The example
7373declares no binaries, so importing it unchanged does not authorize a client.
74- For a Claude Code installation, use the resolved executable path inside the
75- image; ` command -v claude ` may return a symlink to a versioned binary. Include
76- the path to ` curl ` if you plan to use the native API example below.
74+ For a native Claude Code installation, use the resolved executable path inside
75+ the image; ` command -v claude ` may return a symlink to a versioned binary. For
76+ an npm or other script installation, use the resolved Node.js interpreter path
77+ instead. OpenShell authorizes the executable and its trusted executable
78+ ancestors, not the script path from the process command line. Include the path
79+ to ` curl ` if you plan to use the native API example below.
7780
7881``` shell
7982curl -fsSLo google-vertex-ai.yaml https://raw.githubusercontent.com/NVIDIA/OpenShell/main/providers/google-vertex-ai.yaml
8083# Edit google-vertex-ai.yaml and add, for example:
84+ # Native Claude Code:
8185# binaries: [/usr/bin/curl, /path/to/resolved/claude]
86+ # npm-installed Claude Code:
87+ # binaries: [/usr/bin/curl, /path/to/resolved/node]
8288openshell profile lint -f google-vertex-ai.yaml
8389openshell profile import -f google-vertex-ai.yaml --global
8490```
8591
86- To find the resolved path, run ` readlink -f "$(command -v claude)" ` inside the
87- image.
92+ For a native installation, find the resolved path with
93+ ` readlink -f "$(command -v claude)" ` . For an npm installation, find the Node.js
94+ interpreter with ` readlink -f "$(command -v node)" ` . Run the applicable command
95+ inside the image.
8896
8997#### Service Account Key
9098
@@ -178,9 +186,10 @@ variables.
178186
179187### Run Claude Code with Vertex AI
180188
181- Use an image with Claude Code installed and include its resolved executable
182- path in the imported profile's ` binaries ` . After attaching the provider, start
183- an interactive shell:
189+ Use an image with Claude Code installed. In the imported profile's ` binaries ` ,
190+ include the resolved Claude executable for a native installation or the
191+ resolved Node.js interpreter for an npm installation. After attaching the
192+ provider, start an interactive shell:
184193
185194``` shell
186195openshell sandbox connect vertex-agent
0 commit comments