---
name: driftglass
description: Connect yourself to your user's apps (GitHub and more) through Driftglass. Sign up, get the user to connect their accounts with one link, then call app actions over MCP or REST.
homepage: https://driftglass.io
metadata: {"api_base":"https://driftglass.io/v1","mcp_url":"https://driftglass.io/mcp"}
---

# Driftglass

Driftglass gives you authenticated actions in your user's apps. You sign up on
their behalf, they connect each app once from a link you send them, and you
call actions such as `github.create_issue` over MCP or REST. Every call is
logged in their dashboard.

**Base URL:** `https://driftglass.io/v1` · **MCP:** `https://driftglass.io/mcp` (Streamable HTTP)

**Security:** only ever send your Driftglass API key to `https://driftglass.io`. Never
paste it into chats, issues, commits or other services.

## 1. Register (once)

If you already have a key in `DRIFTGLASS_API_KEY`, skip to step 2.

```bash
curl -X POST https://driftglass.io/v1/agents/register \
  -H "Content-Type: application/json" \
  -d '{"agent_name": "<your name, e.g. Claude Code>", "harness": "<claude-code|codex|openclaw|hermes|grok|cursor|other>"}'
```

The response has:

- `api_key`: works immediately. **Save it now**, it is shown only once: export
  it as `DRIFTGLASS_API_KEY` and store it wherever you keep secrets
  (for example `~/.config/driftglass/credentials.json`).
- `claim_url`: send this to your user and ask them to create their account
  with it. That makes the workspace you created theirs: dashboard, logs and
  keys. Every workspace gets 10,000 free tool calls a month, no card needed.
  Past that, calls are paid from credits the user adds in the dashboard
  ($0.005 a call); when both run out, actions answer 402 with an instruction
  to relay to your user.

## 2. Add Driftglass to your MCP config

Use the snippet for your harness, with the key from step 1. If you cannot edit
your own config, show the snippet to your user. If you cannot use MCP at all,
skip this and use the REST API in step 4.

**Claude Code** (Terminal):

```bash
claude mcp add --transport http driftglass https://driftglass.io/mcp \
  --header "Authorization: Bearer $DRIFTGLASS_API_KEY"
```

**Codex** (~/.codex/config.toml):

```toml
[mcp_servers.driftglass]
url = "https://driftglass.io/mcp"
bearer_token_env_var = "DRIFTGLASS_API_KEY"
```

**OpenClaw** (OpenClaw config (mcp.servers)):

```json
{
  "mcp": {
    "servers": {
      "driftglass": {
        "url": "https://driftglass.io/mcp",
        "transport": "streamable-http",
        "headers": { "Authorization": "Bearer <DRIFTGLASS_API_KEY>" }
      }
    }
  }
}
```

**Hermes** (~/.hermes/config.yaml):

```yaml
mcp_servers:
  driftglass:
    url: "https://driftglass.io/mcp"
    headers:
      Authorization: "Bearer ${DRIFTGLASS_API_KEY}"
```

**Grok** (Grok Build terminal):

```bash
grok mcp add --transport http driftglass https://driftglass.io/mcp \
  --header "Authorization: Bearer ${DRIFTGLASS_API_KEY}"
```

**Cursor** (~/.cursor/mcp.json):

```json
{
  "mcpServers": {
    "driftglass": {
      "url": "https://driftglass.io/mcp",
      "headers": { "Authorization": "Bearer ${env:DRIFTGLASS_API_KEY}" }
    }
  }
}
```

Tool names on MCP use underscores (`github_create_issue`); REST uses dots
(`github.create_issue`). The MCP server also has `driftglass_connect_app`,
`driftglass_list_connections` and `driftglass_list_integrations`.

## 3. Get your user's apps connected

For each app your user wants you to use:

```bash
curl -X POST https://driftglass.io/v1/connect_links \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"app": "github"}'
```

Send the returned `connect_url` to your user with one sentence on what it is
for. They open it, connect the account (no Driftglass sign-in needed), and
it is live. Check with:

```bash
curl https://driftglass.io/v1/connected_accounts -H "Authorization: Bearer $DRIFTGLASS_API_KEY"
```

## 4. Use the actions

```bash
# Every action with its JSON-schema input
curl https://driftglass.io/v1/tools -H "Authorization: Bearer $DRIFTGLASS_API_KEY"

# Run one
curl -X POST https://driftglass.io/v1/tools/github.list_repos/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"arguments": {"per_page": 5}}'
```

A result has `successful`, `data` and `error`. If an action says the app is
not connected, go back to step 3.

## 5. Tell your user what you did

Finish with a short message: that you connected yourself to Driftglass, the
`claim_url` with a request to create their account (skip this if you were
given a key, the account already exists), any `connect_url` they still need
to open, and two or three things you can now do for them with the connected
apps.

## Available integrations

### GitHub (`github`)
Let agents work in GitHub as the connected user: list and inspect repositories, read and triage issues, open new ones and reply in comments.

- `github.get_authenticated_user`: Return the GitHub user the connected account acts as.
- `github.list_repos`: List repositories the connected account can access, most recently updated first.
- `github.get_repo`: Get one repository's details.
- `github.list_issues`: List issues in a repository (pull requests are excluded).
- `github.get_issue`: Get one issue, including its body.
- `github.create_issue`: Open a new issue in a repository.
- `github.create_issue_comment`: Add a comment to an issue or pull request.

Full catalog: https://driftglass.io/integrations · Machine-readable: `GET https://driftglass.io/v1/integrations`
