DebitMyData

Own a DID-LLM with a key instead of a wallet

Markdown

Every DID-LLM has an owner, who proves it once by signing one message. Most people use a wallet ("My wallet" on the Get a DID-LLM page). AI agents use their own Ed25519 key ("My agent's public key"), and their software signs by itself.

The owner-key tool, did-owner-key.py, is for anyone who wants a key without a wallet app: it makes an Ed25519 owner key on your own computer and signs the message for you. The private key never leaves your computer: only the public key and the signature are sent to the gateway.

On the staging server (tests)? The commands below are for the real service (https://id.debitmydata.io). On staging, see Staging first: one setting goes in front of the prove and directory commands.

What you need

Steps

  1. Make the key (once):

    mkdir -p -m 700 ~/did-keys
    python3 did-owner-key.py new ~/did-keys/my-agent.key
    

    It prints the public key (ed25519:z6Mk...). The key file is readable by you only, and the tool never overwrites an existing one.

  2. Back up the key file (for example in your password manager). It is the only proof that the DID-LLM is yours: whoever has it can act as the owner, and nobody can recover it for you.

  3. On the Get a DID-LLM page (https://id.debitmydata.io): choose My agent's public key, paste the public key, choose how to pay, then Continue to payment and pay.

  4. Once the page shows the payment as received (step 3, "Prove it's yours"), the page shows the command with your registration ID. Copy it and run it:

    python3 did-owner-key.py prove ~/did-keys dmd_did_intent_...
    

    ~/did-keys is the folder of your key files: the tool uses the one that owns this registration and says which (you can also give one key file). It asks the gateway for the message, checks that it is for this registration, this key and this gateway, signs it and sends the signature. It prints "Signed and accepted". If none of your key files owns the registration, it says so and signs nothing.

  5. Back on the page, click Continue (under the command; or reload the page and click Continue): the DID-LLM is issued. Nothing needs pasting: the tool already sent the signature.

The page's own countdown at step 3 does not matter here: the tool always asks for a fresh message.

List it in the directory (optional)

Once the DID-LLM is issued, its owner can list it in the DID-LLM directory. On the directory's List your DID-LLM page, fill in the profile and click Sign and publish, then run the command the page shows:

python3 did-owner-key.py directory ~/did-keys dmd_challenge_...

The tool finds the key file that owns the DID-LLM in ~/did-keys, shows what will be published and asks you to confirm before it signs. Then click Continue on the page. Changing or removing the listing works the same way. On staging the page's command starts with DMD_GATEWAY_API=https://staging-api.debitmydata.io: without it, the tool asks the production gateway, which does not know staging's messages.

Change the owner key, or add a wallet

On the page: https://id.debitmydata.io/manage ("My DID-LLM" in the top bar) changes the owners of a DID-LLM, or revokes it, for owners with a wallet or a key. It prepares the change and shows each message to sign: wallets sign there, and keys with the tool, which signs what your keys can sign in a change made on the page:

python3 did-owner-key.py sign-change ~/did-keys did:web:api.debitmydata.io:agents:... dmd_owner_change_...

The page shows this command with the change's ID filled in: copy it, run it, then click Continue. The rest of this section does it all from the tool.

To move the DID-LLM to a new key (a key that may have leaked, a new machine), make the new key, then name every owner the DID-LLM will have afterwards:

python3 did-owner-key.py new ~/did-keys/new.key
python3 did-owner-key.py change-owner ~/did-keys did:web:api.debitmydata.io:agents:... ~/did-keys/new.key

Revoke the DID-LLM for good

If the DID-LLM must end (a key that leaked with no other owner to move to, an agent retired), its owner revokes it:

python3 did-owner-key.py revoke ~/did-keys did:web:api.debitmydata.io:agents:...

The tool shows the message and asks you to type REVOKE. It cannot be undone: the DID-LLM, its credential and its entitlements stop working forever (MCP: debitmydata_revoke_did). The "Manage your DID-LLM" page does it too: a wallet signs there, a key with this command.

Sign in as the DID-LLM (OAuth)

With DebitMyData's authorization server (auth.debitmydata.io; on staging staging-auth.debitmydata.io), the same key signs the DID-LLM in and gets an access token for the Agentic Superhighway (the MCP server), valid for 10 minutes:

DMD_GATEWAY_API=https://staging-api.debitmydata.io python3 did-owner-key.py token ~/did-keys did:web:staging-api.debitmydata.io:agents:...

Staging (the test server)

Staging (https://staging-api.debitmydata.io) is the gateway's test copy: test coins, test DID-LLMs, nothing real. The tool talks to the real gateway unless told otherwise, so on staging put DMD_GATEWAY_API=https://staging-api.debitmydata.io in front of prove and directory:

DMD_GATEWAY_API=https://staging-api.debitmydata.io python3 did-owner-key.py prove ~/did-keys dmd_did_intent_...
DMD_GATEWAY_API=https://staging-api.debitmydata.io python3 did-owner-key.py directory ~/did-keys dmd_challenge_...

Good to know