MCPcopy Index your code
hub / github.com/clawscli/claws

github.com/clawscli/claws @v0.17.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.17.0 ↗ · + Follow
7,070 symbols 23,684 edges 930 files 4,127 documented · 58%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🇬🇧 English | 🇨🇳 简体中文 | 🇰🇷 한국어

claws

AWSリソース管理のためのターミナルUI

CI Release Go Report Card Go Version License

claws デモ

機能

  • インタラクティブTUI - vimスタイルのキーバインドでAWSリソースを操作できます
  • 70サービス、175リソース - EC2、S3、Lambda、RDS、ECS、EKSなど多数に対応しています
  • マルチプロファイル&マルチリージョン - 複数のアカウント/リージョンを並列でクエリできます
  • プロファイルログイン補助 - プロファイル選択画面からAWS SSOセッション更新やAWS CLI aws loginを実行できます
  • リソースアクション - インスタンスの起動/停止、リソースの削除、ログのテールが可能です
  • クロスリソースナビゲーション - VPCからサブネット、LambdaからCloudWatchへジャンプできます
  • フィルタリング&ソート - あいまい検索、タグフィルタリング、カラムソートに対応しています
  • リソース比較 - サイドバイサイドの差分ビューで比較できます
  • AIチャット - AWSコンテキスト対応のAIアシスタント(Bedrock経由)
  • 6種類のカラーテーマ - dark、light、nord、dracula、gruvbox、catppuccin

スクリーンショット

リソースブラウザ 詳細ビュー アクションメニュー
browser detail actions

マルチリージョン&マルチアカウント

multi-region

AIチャット(Bedrock)

ai-chat

リスト/詳細/差分ビューでAを押すとAIチャットが開きます。アシスタントがAWS Bedrockを使用してリソースの分析、設定の比較、リスクの特定を行います。

インストール

Homebrew(macOS/Linux)

brew install --cask clawscli/tap/claws

インストールスクリプト(macOS/Linux)

curl -fsSL https://raw.githubusercontent.com/clawscli/claws/main/install.sh | sh

バイナリのダウンロード

GitHub Releasesからダウンロードできます。

Go Install

go install github.com/clawscli/claws/cmd/claws@latest

Docker

docker run -it --rm -v ~/.aws:/home/claws/.aws:ro ghcr.io/clawscli/claws

クイックスタート

# claws を実行(デフォルトのAWS認証情報を使用)
claws

# プロファイルを指定
claws -p myprofile

# リージョンを指定
claws -r us-west-2

# サービスやビューを指定して起動
claws -s dashboard        # ダッシュボードから開始
claws -s services         # サービスブラウザから開始(デフォルト)
claws -s ec2              # EC2インスタンス
claws -s rds/snapshots    # RDSスナップショット

# 絞り込み済みの一覧を開く(-s が必要)
claws -s ec2 -f bastion           # ファジーフィルター(`/` と同等)
claws -s ec2 --tag Role=bastion   # タグフィルター(`:tag` と同等)

# 複数のプロファイル/リージョン(カンマ区切りまたは繰り返し指定)
claws -p dev,prod -r us-east-1,ap-northeast-1

# 読み取り専用モード(破壊的なアクションを無効化)
claws --read-only

キーバインド

キー アクション
j / k 上下に移動します
Enter / d リソースの詳細を表示します
: コマンドモード(例: :ec2/instances
/ フィルターモード(あいまい検索)
a アクションメニューを開きます
A AIチャット(リスト/詳細/差分ビュー)
R リージョンを選択します
P プロファイルを選択します
l 選択中のプロファイルでSSOログイン/更新を行います(プロファイル選択画面)
L 選択中のプロファイルでAWS CLI aws loginを実行します(プロファイル選択画面)
? ヘルプを表示します
q 終了します

詳細はキーバインドを参照してください。

ドキュメント

ドキュメント 説明
キーバインド キーボードショートカットの完全なリファレンス
対応サービス 全70サービスと175リソース
設定 設定ファイル、テーマ、オプション
IAM権限 必要なAWS権限
AIチャット AIアシスタントの使い方と機能
Architecture 内部設計と構造
Adding Resources コントリビューター向けガイド

開発

前提条件

  • Go 1.25+
  • Task(オプション)

コマンド

task build          # バイナリをビルド
task run            # アプリケーションを実行
task test           # テストを実行
task lint           # リンターを実行

技術スタック

ライセンス

Apache License 2.0 - 詳細はLICENSEを参照してください。

Extension points exported contracts — how you extend this code

View (Interface)
View is the interface for all views in the application [16 implementers]
internal/view/view.go
Navigator (Interface)
Navigator is an optional interface that renderers can implement to provide navigation shortcuts [102 implementers]
internal/render/render.go
Resource (Interface)
Resource represents a generic AWS resource [6 implementers]
internal/dao/dao.go
LogGroupNameProvider (Interface)
LogGroupNameProvider provides ${LOG_GROUP} variable (CloudWatch log streams) [4 implementers]
internal/action/action.go
AWSTag (Interface)
AWSTag is a constraint for AWS tag types that have Key and Value fields.
internal/aws/tags.go
ClientOption (FuncType)
(no doc)
internal/ai/bedrock.go
InputCapture (Interface)
InputCapture is an optional interface for views that capture input [9 implementers]
internal/view/view.go
MetricSpecProvider (Interface)
MetricSpecProvider is an optional interface for renderers that support inline metrics. [3 implementers]
internal/render/render.go

Core symbols most depended-on inside this repo

Field
called by 2550
internal/render/detail.go
Section
called by 972
internal/render/detail.go
GetID
called by 414
internal/dao/dao.go
Render
called by 393
internal/view/modal.go
String
called by 372
internal/aws/arn.go
GetName
called by 349
internal/dao/dao.go
RegisterCustom
called by 247
internal/registry/registry.go
NewDetailBuilder
called by 189
internal/render/detail.go

Shape

Method 3,612
Function 2,651
Struct 758
Interface 25
TypeAlias 17
FuncType 7

Languages

Go100%

Modules by API surface

internal/config/file.go65 symbols
internal/app/app.go65 symbols
internal/ai/tools.go58 symbols
internal/dao/dao.go57 symbols
internal/action/action_test.go57 symbols
internal/ai/tools_test.go47 symbols
internal/app/app_test.go46 symbols
internal/ui/theme.go45 symbols
internal/config/config.go45 symbols
internal/ui/theme_test.go44 symbols
internal/view/resource_browser_test.go43 symbols
internal/action/action.go41 symbols

Datastores touched

appDatabase · 1 repos

For agents

$ claude mcp add claws \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact