How Jarvis's connectors work — where credentials live, how to list what's configured, and how to read a connector's values on demand. Use when you need an API key / login for an external service (Gmail, GitHub, Slack, a second mailbox, etc.), when the user asks what connectors exist, or when a skill needs credentials it doesn't already have, or when acting on an app connected through One (Spotify, Calendar, …).
3 stars
0 votes
0 copies
2 views
Added October 9, 2026
ai-agentspythongoshellbashnodegitapibackend
Works with
cli
api
mcp
Security analysis
B88/100
criticalDownloads and executes remote scripts — classic supply chain attack
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Connectors?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/julienr2-connectors)
---
name: connectors
description: How Jarvis's connectors work — where credentials live, how to list what's configured, and how to read a connector's values on demand. Use when you need an API key / login for an external service (Gmail, GitHub, Slack, a second mailbox, etc.), when the user asks what connectors exist, or when a skill needs credentials it doesn't already have, or when acting on an app connected through One (Spotify, Calendar, …).
allowed-tools: Bash, Read
---
# Connectors Skill
A **connector** is a set of named credentials for one external service, stored in
the `connectors` table of the Jarvis DB. Each connector has:
- an **id** (slug, e.g. `gmail`, `gmail-work`, `notion`)
- a **name**, **description**, **icon**
- a list of **fields** — each a `{ label, value }` pair with a stable machine
**key** (e.g. `GMAIL_APP_PASSWORD`)
- an optional **proxy** config (see below)
Credentials are **not** injected as environment variables. Read them on demand
from the internal API instead — this is always current and needs no restart.
## List what's configured (the live inventory)
```bash
curl -s -H "X-Internal-Secret: $INTERNAL_SECRET" "$BACKEND_URL/internal/connectors" \
| python3 -m json.tool
```
Returns every connector with its `id`, `name`, `description`, `hasProxy`,
`access`, and field **labels + keys** (no values). Use this to discover what exists — for
example to find that the same person has a `gmail-work` **and** an `aol-personal`
mailbox configured.
Each entry has a `source`: `jarvis` for the connectors described below, `one`
for apps connected through One — see [Connections through One](#connections-through-one).
## Read one connector's values
```bash
curl -s -H "X-Internal-Secret: $INTERNAL_SECRET" "$BACKEND_URL/internal/connectors/gmail" \
| python3 -m json.tool
```
Returns `fields` (with values) and a flat `env` map keyed by field key.
### Two kinds of access
Each connector has an `access`, set by the user in Settings → Connectors:
- **`values`** — you read the values and use them yourself, as below.
- **`proxy`** — the secret values are **withheld from you on purpose**. Secret
fields come back as `{ "hidden": true }` and are left out of `env`; text
fields (a URL, an address) are still there. You reach the service through the
backend's proxy instead, which adds the credential — see [Proxy](#proxy).
Never try to find the value another way, and never ask the user to paste it
into the chat: keeping it out of your reach is the whole point.
### Masked secrets (the agent's sandbox)
When Jarvis runs you in its sandbox, a connector whose secret can be masked
comes back with `"access": "masked"`. Its secret fields carry no `value`, but a
`variable`: the environment variable that already holds it — as a placeholder
the sandbox's proxy swaps for the real value, only on requests to the
connector's `hosts`. Use the variable exactly where the value would go (a
header, a login body); printing it shows the placeholder, which is expected.
- **Shell**: the loader below exports the other fields; the secret is already
in your environment under its variable — nothing to do.
- **A script** (Python, Node) reading `/internal/connectors/<id>`: take each
masked field from the environment, so the script works in and out of the
sandbox:
```python
c = json.load(urlopen(req)) # GET /internal/connectors/<id>
env = c["env"]
for f in c["fields"]:
if f.get("variable"):
env.setdefault(f["key"], os.environ.get(f["variable"], ""))
```
```js
const c = await (await fetch(url, { headers })).json()
const env = c.env
for (const f of c.fields) if (f.variable && !(f.key in env)) env[f.key] = process.env[f.variable] ?? ''
```
Over plain `http://`, substitution works for curl and Python but not for Node's
`fetch`: in Node, use the service's `https://` address.
### Mail and other non-web protocols
In the sandbox, traffic leaves through a proxy that only carries web requests;
IMAP, SMTP and other raw TCP go through its SOCKS side, which Python's
`imaplib`/`smtplib` don't use by themselves. Use the drop-in classes from
`sandbox_net.py` — they connect through SOCKS in the sandbox and directly
everywhere else, so always use them:
```python
import sys; sys.path.insert(0, "/jarvis/agent/skills/connectors")
from sandbox_net import IMAP4_SSL, SMTP, SMTP_SSL, create_connection
```
With curl: `curl ${FTP_PROXY:+--proxy "$FTP_PROXY"} --url "imaps://…"` (the
sandbox advertises its SOCKS proxy as `FTP_PROXY`). Mailbox passwords are not
masked — the proxy can't see inside IMAP or SMTP — so they come with
`access: "values"`, as before.
### Load its values into the shell
Shell state does **not** persist between separate commands, so run this `eval`
in the **same** command block as whatever uses the credentials:
```bash
eval "$(curl -s -H "X-Internal-Secret: $INTERNAL_SECRET" \
"$BACKEND_URL/internal/connectors/gmail" \
| python3 -c 'import sys,json;[print(f"export {k}={json.dumps(v)}") for k,v in json.load(sys.stdin).get("env",{}).items()]')"
# now $GMAIL_ADDRESS and $GMAIL_APP_PASSWORD are set — use them here
echo "$GMAIL_ADDRESS"
```
Each connector's own skill (gmail, github, linear, …) starts with this snippet
for its id. Connectors you added yourself, with no dedicated skill page, are
used the same way — list the inventory, then read the connector.
## Connections through One
[One](https://www.withone.ai) is a second kind of connector, plugged in from
**Settings → Customize → One**. The person signs in to an app (Gmail, Google
Calendar, Spotify, Notion, …) on One's site; the credential stays at One and
never reaches Jarvis. In the inventory those entries look like:
```json
{ "id": "one:…", "source": "one", "name": "Spotify Web", "platform": "spotify-web",
"connectionKey": "live::spotify-web::default::…", "state": "operational" }
```
There are no values to read. Act through the `one` MCP server instead, which
is loaded in every session while One is plugged in:
1. `mcp__one__list_one_integrations` — the connected apps and their connection keys.
2. `mcp__one__find_one_actions` — find the action for each step, with its docs
(`requests: [{ platform: "spotify-web", intent: "add a track to a playlist" }]`).
Read the docs it returns before executing: they carry the required fields.
3. `mcp__one__execute_one_action` — run it with the `action_id` and the
`connection_key`.
If the `mcp__one__*` tools are not there, One is not plugged in (or switched
off): say so and point to Settings → Customize → One rather than improvising.
If an app the user asks about is not connected, tell them to connect it there —
connecting takes an OAuth sign-in only they can do.
When the same service is connected both ways (a `gmail` Jarvis connector and a
Gmail One connection), a dedicated skill's instructions win; otherwise either
works — use the one the user names, or ask if it matters which account.
## Proxy
A connector with a `proxy` config can be called through the backend, which
forwards the request to the service and attaches the credential on the way
out:
```
$BACKEND_URL/api/connectors/<id>/proxy/<path on the service>
```
`<path>` and the query string are appended to the connector's base URL. Send
the `X-Internal-Secret` header; your other headers (Accept, Content-Type, an
API version header…) are passed through. GET, POST, PUT, PATCH and DELETE all
work, and the response comes back as the service sent it.
```bash
# a connector with access: "proxy" — e.g. a REST API whose token you never see
curl -s -H "X-Internal-Secret: $INTERNAL_SECRET" -H "Accept: application/json" \
"$BACKEND_URL/api/connectors/github/proxy/user/repos?per_page=5"
curl -s -X POST -H "X-Internal-Secret: $INTERNAL_SECRET" -H "Content-Type: application/json" \
-d '{"title":"…"}' "$BACKEND_URL/api/connectors/github/proxy/repos/OWNER/REPO/issues"
```
`GET /internal/connectors/<id>` returns the exact `proxy` URL for a connector
whose values are hidden. A dedicated skill (github, linear, …) shows the
`eval` loader; when the connector's `access` is `proxy`, use the same endpoints
through the proxy instead of with the token.
The proxy speaks HTTP only. A hidden connector for something that is not an
HTTP API (IMAP/SMTP, SSH) cannot be used — tell the user rather than guessing.
The same route serves the browser: `<img>` tags and generated apps load proxied
content with the user's session or the app's own token (see the `apps` skill,
and `copyparty` for files).
## Adding / editing a connector
Through the UI: **Settings → Connectors → Add connector** — name it, pick an icon
(or paste a logo image URL), then add label + value fields. Editing opens the
same modal. The machine key for each field is derived from its label
automatically; existing keys are preserved.
**Creating** a connector is the user's: `/api/connectors` needs a user session,
which you never hold. When a service needs credentials that aren't there, tell
the user exactly which fields to add (labels and where to find the values).
**Changing** one you can do yourself, when its `access` is `values` — you
already read everything it holds. Add a field, give one a new value, set or
remove its proxy:
```bash
curl -s -X PATCH -H "X-Internal-Secret: $INTERNAL_SECRET" -H "Content-Type: application/json" \
"$BACKEND_URL/internal/connectors/<id>" -d '{
"fields": [{ "label": "API token", "value": "…", "type": "password" }],
"proxy": { "baseUrlField": "SERVICE_URL",
"authHeader": { "name": "Authorization", "valueField": "API_TOKEN", "prefix": "Bearer " } }
}'
```
- `fields`: one with the `key` of an existing field changes it (`value`,
`label`, `type`); one without is added, its key derived from the label
(`API token` → `API_TOKEN`). Fields you don't list stay; none is removed.
- `proxy`: `baseUrlField`, and one of `authHeader` (`prefix` optional — leave
it out when the service wants the token alone), `cookieField`
(`name`, `valueField`) or `authQuery` (`name`, `valueField`). `null` removes
it. Every field it names must exist.
- The answer lists the field keys and the proxy as saved.
**Do it, don't hand it over.** When what you are building needs such a change
— an app that has to reach the service, a token the service can issue to you
with the access you already hold — make it yourself, as part of the work. Do
not stop to ask the user to open Settings, and do not ask them to choose
between kinds of tokens or accounts: most people cannot tell what a proxy or a
superuser is, and should not have to. Decide as a careful administrator would:
- A proxy opens the service to apps (they call it with their own token), so
give it the **narrowest credential that does the job** — a read-only
account or token limited to what the app shows, created by you on the
service if it lets you, rather than the admin one.
- Prefer what can be undone (a new account, a new read rule, a new field) to
what cannot; leave existing fields and accounts as they are.
- Afterwards say it in one plain sentence, without the machinery: "The
dashboard now reads the thermometers directly; I gave it a read-only access
to those two tables." The details only if asked.
Ask first only when the change cannot be undone, gives an app more than
read access, or needs something you cannot get yourself (a key only the user
can create — then say exactly where to click, in their words). Refused (403) for a connector whose `access` is `proxy` or
`masked`: that one only the user changes, in Settings → Connectors.
There is **no hardcoded connector catalog** — every connector is just a DB row.
## When does a connector deserve its own skill?
- **Yes** when it has real surface to document — an auth flow, a query language,
pagination, non-obvious endpoints, or a repeated idiom (gmail, github, linear,
slack, pocketbase, copyparty, elevenlabs).
- **No** when it's plain REST with an obvious pattern, rarely used, or already
covered by a domain skill that owns the whole workflow it belongs to. Those are
reached via the inventory + read pattern above.
## People → mailboxes
Family email may be spread across several connectors, and one person can have more
than one mailbox (e.g. a Gmail **and** an AOL account). Always **check the live
inventory** (`GET /internal/connectors`) before assuming an address — if the user
names a person without naming a provider, look at every connector that could be
theirs and check each. All mailbox connectors are IMAP/SMTP, usable exactly like the
`gmail` skill's pattern. Personal person→connector mappings live in `CLAUDE.local.md`.