Skip to content

Commit 4d96784

Browse files
committed
Install Claude Code for Gitpod Classic
1 parent 96f7865 commit 4d96784

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitpod.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ tasks:
8080
init: |
8181
./components/gitpod-protocol/go/scripts/generate-config.sh
8282
leeway exec --filter-type go -v -- go mod verify
83+
- name: claude code
84+
command: |
85+
if [[ ! -z "${CLAUDE_JSON}" ]]; then
86+
echo "Skipping setup for Claude Code. Setup a CLAUDE_JSON variable to reuse Claude Code in workspaces."
87+
exit 0
88+
fi
89+
echo $CLAUDE_JSON > ~/.claude.json
8390
vscode:
8491
extensions:
8592
- EditorConfig.EditorConfig

dev/image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ USER gitpod
127127
ARG GITPOD_NODE_VERSION=22.15.1
128128
RUN bash -c ". .nvm/nvm.sh \
129129
&& nvm install $GITPOD_NODE_VERSION \
130-
&& npm install -g typescript yarn"
130+
&& npm install -g typescript yarn @anthropic-ai/claude-code"
131131
ENV PATH=/home/gitpod/.nvm/versions/node/v${GITPOD_NODE_VERSION}/bin:$PATH
132132

133133
## Register leeway autocompletion in bashrc

0 commit comments

Comments
 (0)