Skip to content

Commit f252381

Browse files
johntmyersfeloy
authored andcommitted
docs(providers): correct Claude executable guidance
Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
1 parent d26aaa1 commit f252381

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

‎docs/how-it-works/providers/google.mdx‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,28 @@ native Vertex endpoint and request format for its selected model.
7171
Copy the example profile and set its top-level `binaries` to the absolute paths
7272
of the clients that will call Vertex AI from your sandbox image. The example
7373
declares 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
7982
curl -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]
8288
openshell profile lint -f google-vertex-ai.yaml
8389
openshell 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
186195
openshell sandbox connect vertex-agent

0 commit comments

Comments
 (0)