docs: make HTTPS with a Gitea token the primary install route
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mkpcphc9ZEjNpw867crpNF
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
cf6b05c112
commit
96e04c03e4
@@ -11,24 +11,30 @@ Adds two MCP servers and one skill:
|
||||
|
||||
## Install
|
||||
|
||||
Gitea's SSH listens on port 2222, and Claude Code's marketplace parser does not accept `ssh://` URLs, so set the port in `~/.ssh/config` once:
|
||||
You need read access to this repository, membership of **both** Authentik groups (`kb-users` and `kb-writers`), and a Gitea access token. No SSH key is required.
|
||||
|
||||
**1. Create a token** in Gitea: avatar → *Settings* → *Applications* → *Generate New Token*. Name it `claude-plugin` and grant repository **read** only. Copy it now; Gitea shows it once.
|
||||
|
||||
**2. Let git remember it (once).** Claude Code runs git without prompting, so the token must already be stored. Make sure a credential helper is configured (macOS: `git config --global credential.helper osxkeychain`; Windows: Git Credential Manager is the default; Linux: `libsecret` or `store`), then run:
|
||||
|
||||
```
|
||||
Host git.soloma.ai
|
||||
Port 2222
|
||||
IdentityFile ~/.ssh/<your-gitea-key>
|
||||
git ls-remote https://git.soloma.ai/soloma-core/soloma-kb-plugin.git
|
||||
```
|
||||
|
||||
Then, in Claude Code:
|
||||
Enter your Gitea username and paste the token as the password. A list of refs means it worked and is now saved.
|
||||
|
||||
**3. Add the plugin**, in Claude Code:
|
||||
|
||||
```
|
||||
/plugin marketplace add git@git.soloma.ai:soloma-core/soloma-kb-plugin.git
|
||||
/plugin marketplace add https://git.soloma.ai/soloma-core/soloma-kb-plugin.git
|
||||
/plugin install soloma-kb-plugin@soloma-internal
|
||||
```
|
||||
|
||||
You need read access to this repository and membership of **both** Authentik groups (`kb-users` and `kb-writers`).
|
||||
Restart Claude Code, then see *First sign-in* below.
|
||||
|
||||
(Alternative without SSH config: add `https://git.soloma.ai/soloma-core/soloma-kb-plugin.git` instead; git will need a Gitea username and access token from its credential helper.)
|
||||
*If you already use SSH keys with Gitea:* set `Port 2222` under `Host git.soloma.ai` in `~/.ssh/config` and use `git@git.soloma.ai:soloma-core/soloma-kb-plugin.git` instead. Claude Code does not accept `ssh://` URLs.
|
||||
|
||||
**Token expired or revoked?** Marketplace updates fail with an authentication error. Create a new token and repeat step 2.
|
||||
|
||||
## First sign-in
|
||||
|
||||
|
||||
Reference in New Issue
Block a user