Non-custodial exchange for TNK and RESET against USDC on Solana, run by AI agents over Intercom
Repo Trac-Systems/intercom-dex, read from GitHub 2 d ago. Trac-Systems has not joined Take My Repo.
Trac-Systems/intercom-dex is a public repo on GitHub by Trac-Systems. Non-custodial exchange for TNK and RESET against USDC on Solana, run by AI agents over Intercom. It declares the MIT license on GitHub. It is written mainly in JavaScript, has 5 stars and last changed on 2026-11-12. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
An exchange where people and their AI agents swap TNK or RESET for USDC on Solana, directly with each other. Nobody holds your funds in between: the USDC waits in a lock on Solana, and the coins go straight from the seller to the buyer on Trac Network. You tell your agent what you want to trade, and the agent and a small program on your own computer do the rest.
Version 0.1.34 proves that traders control their Trac addresses, checks seller funds before confirmation and pauses sellers who repeatedly leave funded trades unsent. Updated apps explain refusals immediately, and makers reject takes whose wallets cannot cover the trade and fees. No collateral or trading deposit is added. Offers under still-valid older fee or registry terms remain visible. Follow the upgrade order to activate address proofs; traders then update and repost open offers.
Once intercom-dex is set up, you talk to your agent in plain words. Some things you can say, and what the agent does with them:
A short example:
You: I want to sell my 1 RESET for 1.15 USDC.
Agent: You hold 1 RESET and enough SOL and TNK for the fees. The last trade was at 1.10, and the
best other offer sells at 1.10. Post a sell offer for 1 RESET at 1.15 USDC? The buyer pays
the fees, so you receive the full 1.15 USDC.
You: Yes.
Agent: Posted. It is open for an hour. When someone takes it, your program sends the RESET after the
buyer's USDC is locked, and the USDC arrives in your Solana wallet a minute or two later.
Agents learn the tools and the rules from SKILL.md. The private dashboard further down is a fallback
for when you want to look yourself.
Give your agent this prompt. It installs a tagged release, checks it and connects itself. Only the password stays with you: the agent never asks for it.
Install intercom-dex for me from https://github.com/Trac-Systems/intercom-dex. Use only a tagged
release, never main, and read README.md and SKILL.md of that release first.
1. Download the newest release archive, compare its sha256 with the release page, unpack it, and
run npm ci and npm ci --prefix peer in the release folder.
2. Build the proving key with node bin/proof-setup.mjs.
3. Write peer.json and trader.json in a data folder outside the release folder, with the venue keys
from the release page. Use the built-in public Solana servers, unless I give you my own Solana
RPC URL.
4. Tell me to run node bin/dex.mjs start --config /path/to/dex-data/trader.json
in my terminal. It asks for my password with hidden input and starts both programs in the background.
5. Add the intercom-dex MCP server to your configuration with DEX_CONFIG pointing to trader.json.
Never ask me for the password or put it in a file.
6. After I have started the DEX, call dex_wallets and tell me where to send funds.
The steps it follows are listed under Install by hand, in case you want to do them yourself.
Solana servers. The program comes with six public Solana servers and works with them: two of them have to agree on every read. They limit how many requests each user may send, which is fine for occasional trading. If you trade a lot or run an agent that trades all day, you can add your own Solana RPC URL to the config.
If anything stalls, the trade still ends one of two ways. Either the seller never sent anything, and the buyer gets the USDC back after 48 hours. Or the seller sent the coins, the signers release their pieces, and the seller gets paid.
With a separately configured locks venue, you can borrow USDC against locked RESET or TNK, lend USDC for a fixed
repayment, or pay for the right to buy or sell RESET or TNK by a future Bitcoin block. Ask for the amount, opening fee,
deadline and what happens if you miss it before opening a position. Your program can repay and exercise
automatically while it runs. “Protect against a drop” locks your asset for the term; exercising it is a small
Solana message. Early release follows usually 1–2 hours after payment. Traders use one peer with locks: true. See Locks for the products, limits and recovery rules.
The buyer pays two fees on top of the price, and the seller receives the full price.
Loans and options deduct their opening fee from the maker’s receipt; the taker pays exactly the displayed amount. Put writers also pay the escrow platform fee. See lock fees.
Both fees are taken only when the seller opens the lock. A refund returns the full amount, fees included. The venue publishes its fees in a signed list, and every trade records the fees it was agreed with. On top of this, each side pays the normal network fees: a little SOL on Solana and a little TNK on Trac.
RESET/TNK locks need enough signers to retain their shares; there is no trustless refund. Put writers can refund
their unclaimed USDC escrow after refundAfter. Signers can be replaced by handover while at least k survive. Missing a repayment or exercise deadline can lose collateral or a premium.
Enough of the signers drawn for your trade to open the lock (at least two) would have to work together against you. They could release their pieces without a transfer (the buyer loses the USDC), or hold them back until the refund time (the seller sent the coins and the buyer takes the USDC back). The venue can remove signers that do this from its list.
A seller has to send before the deadline shown for the trade, about 15 minutes after the take. The program sends by itself. If no transaction was prepared in time, the trade is called off. A transaction already broadcast can still arrive later; the program keeps checking it and does not call it sent until it is confirmed.
Keep the program running until every trade has finished or been refunded. It restarts safely and picks up where it stopped, but a seller that stays offline past the refund time can lose the payment for coins it already sent.
Use a tagged release. The main branch is development and not for trading.
intercom-dex runs on Intercom, the peer-to-peer network for agents on Trac Network. Peers find each other and talk directly over Hyperswarm and HyperDHT, without a central server. Each trader, signer and the venue runs one Intercom peer under the Pear runtime, and the exchange uses its parts like this:
You <-> your agent <-> MCP server <-> trading program (keys, wallets, trade logic)
| local bridge (WebSocket, token)
v
Intercom peer (Pear runtime)
+---------------------+---------------------+
| | |
Sidechannels MSB client RESET reader
offers, trades, chat TNK transfers RESET transfers
|
other traders, signers, the venue (Hyperswarm, blind relays)
The trading program also talks to Solana: the USDC lock, the claim and the refund.
You need Node.js 23.11 or newer, about 1 GB of disk space and 4 GB of free memory.
1. Download a release. Pick the newest release vX.Y.Z on the
releases page, download intercom-dex-vX.Y.Z.tar.gz
and compare its sha256 with the one shown on the release page (sha256sum works too):
shasum -a 256 intercom-dex-vX.Y.Z.tar.gz
tar xzf intercom-dex-vX.Y.Z.tar.gz
cd intercom-dex-vX.Y.Z
npm ci
npm ci --prefix peer
2. Build the proving key. The buyer's program proves to the signers that their pieces really open the lock. This needs a key that is built once from a public file. The script downloads that file (about 300 MB), checks it against the hash pinned in the code and writes the key:
node bin/proof-setup.mjs --out /path/to/dex-data/lockkey.zkey
3. Write two small config files. Keep them, and everything the program stores, in a folder outside the release
folder, here /path/to/dex-data. The venue's two public keys (serviceKey and servicePeerKey) are listed on the
release page. /path/to/dex-data/peer.json:
{
"network": "mainnet",
"role": "trader",
"servicePeerKey": "<venue peer key from the release page>",
"storeDirectory": "/path/to/dex-data/peer",
"bridge": { "port": 47200, "tokenFile": "/path/to/dex-data/bridge.token" }
}
/path/to/dex-data/trader.json:
{
"network": "mainnet",
"role": "trader",
"dataDir": "/path/to/dex-data/trader",
"serviceKey": "<venue key from the release page>",
"servicePeerKey": "<venue peer key from the release page>",
"bridge": { "url": "ws://127.0.0.1:47200", "tokenFile": "/path/to/dex-data/bridge.token" },
"control": { "port": 47201, "tokenFile": "/path/to/dex-data/control.token" },
"dashboard": { "port": 47202 },
"proof": { "zkey": "/path/to/dex-data/lockkey.zkey" },
"trac": { "resetGatewayUrl": "https://reset.openmayhem.ai" }
}
The RESET gateway is only needed to sell RESET. Without a solana block the program uses six public Solana servers
and needs two of them to agree on every read. That suits occasional trading; their rate limits can slow down an agent
that trades all day. To use your own Solana RPC instead, add "solana": { "endpoints": ["<your RPC URL>"] }. With
one endpoint of your own, the program trusts its answers.
4. Start the DEX. Create the peer's access token once, then start the peer and trader together:
mkdir -p /path/to/dex-data
(umask 077 && openssl rand -hex 32 > /path/to/dex-data/bridge.token)
node bin/dex.mjs start --config /path/to/dex-data/trader.json
Choose a password of at least 12 characters at the hidden prompt, or supply DEX_KEY_PASSWORD in the launch
environment. The launcher passes it to the child environment; it never writes it to disk, command arguments or
logs. It finds peer.json next to trader.json; use --peer-config for another absolute path.
The command waits for the peer and trader to be ready, prints the private dashboard link once, then returns.
Both processes keep running after you close the terminal or your agent. Windows opens no extra console windows.
Run the same command again after a reboot. A second start for the same trader data folder is refused.
The supervisor restarts crashed processes with backoff, stops after five failures within ten minutes, and shows the restart count and last exit in status.
node bin/dex.mjs status --config /path/to/dex-data/trader.json
node bin/dex.mjs logs --config /path/to/dex-data/trader.json
node bin/dex.mjs stop --config /path/to/dex-data/trader.json
Status shows the processes, versions, online signers, private dashboard link and log paths. Logs prints the latest
64 KiB of each log; add peer or trader after logs
Trac-Systems/intercom-dex is a public repo on GitHub by Trac-Systems. Non-custodial exchange for TNK and RESET against USDC on Solana, run by AI agents over Intercom.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-12. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run intercom-dex. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-11-12. It has 5 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.