authsome — скилл для Claude Code: доступ к Gmail, GitHub и Stripe
Проксирует исходящий HTTPS агента и подставляет сохранённые ключи в заголовки. Пригодится, когда агенту нужен GitHub API или Stripe без токена в чате.
npx skills add agentrhq/authsome --skill authsome -a claude-codeЧто делает authsome
Скилл заворачивает исходящий трафик агента в прокси, который сам добавляет заголовки с сохранёнными учётными данными. Значения ключей агент не видит и не трогает. Любой bash-вызов, скрипт или curl с внешним HTTP-запросом идёт через authsome run -- <команда>, и если сервис подключён, авторизация подставляется на лету.
Работает с обычными HTTP-клиентами: curl, fetch, requests, axios, git — все они читают переменную окружения HTTPS_PROXY. Отдельные заголовки авторизации прописывать не нужно. Подключение сервиса идёт через authsome login <provider>: браузер открывается на машине пользователя, OAuth завершается без терминала, а статус проверяется командой authsome provider list.
Ставится скилл через uv tool install authsome. Если это не сработало, есть запасной путь — pipx install authsome или разовый запуск uvx authsome@latest <command>. При ошибке 401 учётные данные просрочены: их отзывают через authsome provider revoke <provider> и заходят заново. Ошибка 403 означает нехватку прав, и повторная регистрация провайдера тут не поможет — нужен authsome login <provider> --scopes repo,user,gist с существующим провайдером. Если прокси вернул 403 с JSON в теле, это блокировка политики, обходить её не следует.
Какие задачи решает
- сделать запрос к GitHub API без токена в переписке
- подключить Gmail или Google Calendar к агенту через OAuth
- прогнать python-скрипт с внешними HTTP-вызовами
- перелогиниться в сервис с нужными scopes после 403
- запустить
curlк Stripe и не светить ключ в терминале
Примеры запросов агенту
- Покажи последние 10 репозиториев через
authsome run -- curl -s "https://api.github.com/user/repos?per_page=10" - Подключи Gmail: запусти
authsome login gmailи проверь статус черезauthsome provider list - Прогони мой скрипт с внешними запросами:
authsome run -- python my_agent_script.py
Как установить authsome
1Через Skills CLI (Vercel)
npx skills add agentrhq/authsome --skill authsome -a claude-code2Вручную: положить файлы
~/.claude/skills/authsome/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/authsome/
1Через Skills CLI (Vercel)
npx skills add agentrhq/authsome --skill authsome -a codex2Вручную: положить файлы
.agents/skills/authsome/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add agentrhq/authsome --skill authsome -a cursor2Вручную: положить файлы
.cursor/skills/authsome/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install agentrhq/authsome authsome2Вручную: положить файлы
.github/skills/authsome/SKILL.md1Через Skills CLI (Vercel)
npx skills add agentrhq/authsome --skill authsome -a gemini-cli2Командой платформы
gemini skills install https://github.com/agentrhq/authsome --path skills/authsomeВручную: положить файлы
.devin/skills/authsome/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add agentrhq/authsome --skill authsome -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о authsome
Как установить authsome в Claude Code?
Сначала добавьте скилл командой npx skills add agentrhq/authsome --skill authsome -a claude-code. Файл окажется по пути ~/.claude/skills/authsome/SKILL.md.
Что делает authsome?
Пропускает исходящие HTTPS-запросы агента через прокси, который подставляет сохранённые учётные данные в заголовки. Агент работает с Gmail, GitHub, Stripe и другими API, не видя самих ключей.
Что делать при ошибке 401 или 403?
При 401 учётные данные истекли: отзовите их через authsome provider revoke <provider> и запустите вход заново. При 403 не хватает прав — добавьте их через authsome login <provider> --scopes repo,user,gist, не создавая нового провайдера.
Исходный текст
SKILL.md · MIT
--- name: authsome version: 0.2.0 description: | Use this to access external services/CLIs/APIs: Gmail/gh/Github/Stripe etc. or when running any bash command, script, or curl/wget that makes outbound HTTP calls. Make HTTP requests directly and the gateway injects credentials automatically. --- # Authsome Your outbound HTTPS traffic is transparently proxied through the Authsome, a proxy service that injects stored credentials as HTTP headers. You never see or handle credential values directly. ## How to Access External Services You have direct HTTP access to external APIs. OAuth apps (Gmail, GitHub, Google Calendar, Google Drive, etc.) and API key services are all available through the gateway. Just make the request by appending `authsome run -- ` to any bash command; the gateway injects credentials if the app is connected. ## Making Requests Call the real API URL. The gateway intercepts the request and injects credentials automatically. ```bash authsome run -- <command> authsome run -- curl -s "https://api.github.com/user/repos?per_page=10" authsome run -- python my_agent_script.py ``` Standard HTTP clients (curl, fetch, requests, axios, Go net/http, git) all honor the `HTTPS_PROXY` environment variable automatically. You do not need to set any auth headers. --- ## Login Flow - Run `authsome login <provider>` via Bash yourself — do NOT ask the user to run this. The browser opens on their machine; they complete OAuth without touching the terminal. - Poll the status of the login using `authsome provider list` after a few seconds - **If connected** — proceed normally. - **If not yet connected** — display the authentication URL to the user, ask them to complete the login in their browser, and report back once done. Once the user confirms, run `authsome provider list` again to verify the connection before continuing. --- ## When a Request Fails ### If authsome is not installed on the agent's machine: Install authsome using `uv tool install authsome` Only when uv tool install fails, use fallback: `pipx install authsome` or `uvx authsome@latest <command>` for one-off use (say when running inside sandboxed environments). ### If you get an authentication error (401, 403) follow this decision tree: **1. Run `authsome provider list` to see all providers and their connections** **2. If relevant provider exists but it has no connections → start the [login flow](#login-flow)** If there is a login error due to wrong client id/client secret you can delete the provider via `authsome provider remove <provider>` and start the [login flow](#login-flow) **3. If relevant provider exists and it is connected** For 401 error → you need to re-login, creds have expired - revoke the creds using `authsome provider revoke <provider>` - then start the [login flow](#login-flow) For 403 error → you need to re-login, with the correct scopes, or missing permissions **CRITICAL:** Do NOT register a new provider just to add scopes; always use `--scopes` with the existing provider: ```bash authsome login <provider> --scopes repo,user,gist ``` **4. If relevant provider does not exist, then → add it first and then start the [login flow](#login-flow)** ## Adding a new provider See [references/adding-provider.md](references/adding-provider.md). --- ## Troubleshooting & Help If you are unsure of the correct command syntax, need to check available flags, or if a command fails, ALWAYS read the built-in help menus before guessing: ```bash authsome --help authsome provider --help authsome connections --help authsome run --help ``` ## Rules - **Never** say "I don't have access to X" without first making the HTTP request through the proxy. - **Never** use browser extensions, gcloud, or manual auth flows. The gateway handles credentials for you. - **Never** ask the user for API keys or tokens directly. Run `authsome login <provider>`. It opens a browser window and captures them directly, so secrets never enter the conversation. - **Never** suggest the user open Gmail/Calendar/GitHub in their browser when they ask you to read or interact with those services. You have API access. Use it. - **Never** use any workflow that prints tokens or API keys to the terminal. Use `authsome run -- ...` instead. - If the gateway returns a policy error (403 with a JSON body), respect the block. Do not retry or circumvent it. - If the skill fails, the goal took too many steps, the CLI behaved unexpectedly, or the user asks you to report an issue — file a bug following [references/feedback.md](references/feedback.md). - **Never** ask the user to run commands in their terminal that you can run yourself.
© agentrhq · MIT · agentrhq/authsome