Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/deploy-claude-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Claude Code to Runloop

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Prepare Claude Code Package
run: |
mkdir claude_agent
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct, but is copied from where we use this in a claude agent w/ skills.

cd claude_agent
npm init -y
# Install the specific package
npm install @anthropic-ai/claude-code
# Set the start script to run the binary
npm pkg set scripts.start="./node_modules/.bin/claude"
# Verify it runs (print help/version if possible to check install)
./node_modules/.bin/claude --version || true

- name: Create tarball
run: tar -czf claude_agent.tar.gz -C claude_agent .

- name: Deploy to Runloop
uses: runloopai/deploy-agent@main
with:
api-key: ${{ secrets.RUNLOOP_API_KEY }}
api-url: https://api.runloop.ai
source-type: 'tar'
path: claude_agent.tar.gz
agent-name: 'claude-code-agent'