0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[環境構築メモ] LM Studio + OpenHands CLI

Posted at

インストール

LM Studio

公式サイトからアプリ落としてインストールするだけ

uv (OpenHands CLIのインストールに必要)

curl -LsSf https://astral.sh/uv/install.sh | sh

OpenHands CLI

uvx --python 3.12 --from openhands-ai openhands

設定

LM Studio

使いたいモデルを落としてAPIサーバーを起動する

DeveloperタブのStatusトグルを有効化するだけ

image.jpeg

公式ドキュメント

OpenHands CLI

~/.openhands/settings.jsonに以下のように記載する。

{
  "llm_base_url": "http://127.0.0.1:1234/v1",
  "llm_api_key": "local-llm",
  "llm_model": "openai/mistralai/devstral-small-2507"
}
  • llm_base_urlはLM Studio上に表示されているReachable at:とその末尾に/v1をつけたもの
  • llm_modelにはopenai/<使いたいモデル名>の形式で記載する
  • llm_api_keyは本来不要なので、適当に好きな文字列

実行

uvx --python 3.12 --from openhands-ai openhandsでCLI自体の起動ができる

/を打つとサジェストが出てきます

image.jpeg

最初は/initをして、現在のプロジェクトの情報をまとめさせると良い?

詳しいことはCLIのドキュメントを読んでください。

完全ローカルでTUI AIツールを使えるぞー

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?