Skip to content
Open
Show file tree
Hide file tree
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
84 changes: 84 additions & 0 deletions docs/claude/bedrock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Bedrockの設定(Jetson側)

## JetsonにログインしClaudeのVersionを確認

```bash
claude --version
```

```bash
2.1.220 (Claude Code)
```

## AWS CLIのVersion


AWS cliをインストール

```bash
cd /tmp

curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" \
-o "awscliv2.zip"

sudo apt-get update
sudo apt-get install -y unzip

unzip awscliv2.zip
sudo ./aws/install
```

AWS cliのVersionを確認

```bash
aws --version
```

```bash
aws-cli/2.36.14 Python/3.14.6 Linux/6.8.12-1021-tegra exe/aarch64.ubuntu.24
```

## AWS SSOの設定

```bssh
aws sso login --profile my-pak-profile --use-device-code
```

SSOのstart URL, リージョンなどを設定します。

```bash
SSO session name (Recommended): lerobot
SSO start URL [None]: https://d-xxxxxxxxxx.awsapps.com/start
SSO region [None]: ap-northeast-1
SSO registration scopes [sso:account:access]:
```

URLが表示されるのと発行されたKeyを入力し設定します。

## BedrockのClaude Fable 5のprovider_data_shareの設定

AWSでCloud Shellを起動して、Fable5のprovider_data_shareの設定を有効化します。

```
aws bedrock put-account-data-retention --mode provider_data_share --region ap-northeast-1
```
## Claude Codeの設定

Jetson上で、claudeを起動します。

画面モードを選択

![](./img/claude001.png)

3rd-party platformを選択

![](./img/claude002.png)

Amazon Bedrockを選択

![](./img/claude003.png)

先ほど設定したssoのProfileのmy-pak-profileを選択し、fable5が出てくれば連動成功です。fable5が有効にならない場合、rovider_data_shareの設定がおこなわれていない可能性があります。

![](./img/claude004.png)

96 changes: 96 additions & 0 deletions docs/claude/bedrock_local.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Bedrockの設定(PC側)

## AWS cli

AWS cliのVersionを確認

```bash
aws --version
```

```bash
aws-cli/2.36.14 Python/3.14.6 Linux/6.8.12-1021-tegra exe/aarch64.ubuntu.24
```

## AWS SSOの設定

```bssh
aws configure sso --profile my-pak-profile --use-device-code
```

SSOのstart URL, リージョンなどを設定します。

```bash
SSO session name (Recommended): lerobot
SSO start URL [None]: https://d-xxxxxxxxxx.awsapps.com/start
SSO region [None]: ap-northeast-1
SSO registration scopes [sso:account:access]:
```

URLが表示されるのと発行されたKeyを入力し設定します。

## BedrockのClaude Fable 5のprovider_data_shareの設定

AWSでCloud Shellを起動して、Fable5のprovider_data_shareの設定を有効化します。

```
aws bedrock put-account-data-retention --mode provider_data_share --region ap-northeast-1
```
## Claude Code Desktopを終了

Claude Code Desktopを完全に終了します(OSXならCMD+Q)。

各環境に合わせて`~/.claude/settings.json`を設定します。

`~/.claude/settings.json` OSXでの例

```bash
{
"env": {
"CLAUDE_CODE_USE_BEDROCK": "1",
"AWS_PROFILE": "my-pak-profile",
"AWS_REGION": "ap-northeast-1",
"ANTHROPIC_MODEL": "global.anthropic.claude-fable-5"
}
}
```

## Claude Code Desktopを再起動

再起動すると、`CLAUDE_CODE_USE_BEDROCK`が有効になり、Bedrockのfable5に接続可能になります。

## 他のモデルを使う場合

`ANTHROPIC_MODEL`の値を変更すると、他のモデルに切り替えられます。

| モデル | `ANTHROPIC_MODEL`の値 |
|---|---|
| Claude Fable 5 | `global.anthropic.claude-fable-5` |
| Claude Opus 5 | `global.anthropic.claude-opus-5` |
| Claude Sonnet 5 | `global.anthropic.claude-sonnet-5` |
| Claude Opus 4.8(日本国内リージョンで処理) | `jp.anthropic.claude-opus-4-8` |

例えばOpus 5に切り替える場合、`~/.claude/settings.json`を次のように書き換えます。

```bash
{
"env": {
"CLAUDE_CODE_USE_BEDROCK": "1",
"AWS_PROFILE": "my-pak-profile",
"AWS_REGION": "ap-northeast-1",
"ANTHROPIC_MODEL": "global.anthropic.claude-opus-5"
}
}
```

書き換え後、Claude Code Desktopを再起動すると反映されます。

利用可能なモデルIDの一覧は、次のコマンドで確認できます。

```bash
aws bedrock list-inference-profiles \
--profile my-pak-profile \
--region ap-northeast-1 \
--query "inferenceProfileSummaries[?contains(inferenceProfileId, 'claude')].[inferenceProfileId,status]" \
--output table
```
16 changes: 16 additions & 0 deletions docs/claude/desktop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Claude Code Desktopとの連携

## Claude Code Desktopで新規プロジェクト

![](./img/desktop001.png)

![](./img/desktop002.png)

![](./img/desktop003.png)

![](./img/desktop004.png)

![](./img/desktop005.png)

![](./img/desktop006.png)

16 changes: 16 additions & 0 deletions docs/claude/howto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Claude Codeとの連携方法

## Claude Code連携のメリット

Physical Agent Kit(PAK)とClaude Codeを連携させることで、プラグインの自動作成や、学習等の各種コマンドのサポート、LeRobotで足りない機能の拡張などが可能となります。

## Claude Codeとの連携方法

Claude CodeをPAKに組み込むには2つの方法があります。1つ目はClaude Code DesktopからSSHでPAKに接続し連携する方法です。2つ目はVisual Studio RemoteSSHを用いてPAK接続しClaude Codeをコマンドで起動して連携する方法です。

|方法|Claude Codeの起動|Jetsonのインターネット接続|
|:--|:--|:--|
|Claude Code DesktopからSSHでPAKに接続|接続元のPC上のClaude Code Desktopで起動|必要|
|Visual Studio RemoteSSHを用いてPAK接続|Jetson上でClaude Codeが起動|必要|

![](./img/way001.png)
Binary file added docs/claude/img/claude001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/claude002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/claude003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/claude004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/desktop001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/desktop002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/desktop003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/desktop004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/desktop005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/vsc010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/claude/img/way001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/claude/plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# LeRobotプラグイン構築

## LeRobotプラグイン構築 SKill

LeRobotPluginSkillを用いることで、Claude Codeを用いてプラグインを構築する事も可能です。

|プロジェクく|Repo|
|:--|:--|
| LeRobotPluginSkills | [https://github.com/FaBoAI/LeRobotPluginSkills](https://github.com/FaBoAI/LeRobotPluginSkills)
5 changes: 5 additions & 0 deletions docs/claude/vs_remote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Visual Studio remoteSSH

## Visual Studio remoteSSH

現在作成中
43 changes: 43 additions & 0 deletions docs/claude/vsc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Visual Studio Code

## 1.VSCode インストール
以下より VSCode をインストールします。

<a href="https://code.visualstudio.com/" target="new">Visual Studio Code</a>

## 2.VSCode 拡張機能インストール

下記Extentionをインストールします。

- Remote SSH

VSCodeを起動し、Remote SSH Extentionをインストールしてください。

![](./img/vsc001.png)


## 3.Remote SSHでJetsonへ接続

![](./img/vsc002.png)

![](./img/vsc003.png)

![](./img/vsc004.png)

## 4.Projectフォルダを開きます

![](./img/vsc005.png)

![](./img/vsc006.png)

## 5.Terminalを開く

![](./img/vsc007.png)

## 6.Claudeを起動

![](./img/vsc008.png)

![](./img/vsc009.png)

![](./img/vsc010.png)
Loading