The quickest way to connect an AI assistant to a financial account is also the worst: copy a secret password and paste it into the chat. From then on the secret sits in a chat log, on a provider’s servers, in front of a model that any web page it reads can try to steer.
Key Takeaways
- JAFX connects AI assistants to trading accounts without exposing passwords, using a secure sign-in page.
- The app receives narrow access tokens that last only an hour, with strict limits on permissions.
- A consent screen alerts users about the app’s identity and destination, highlighting untrusted input.
- Short-lived tokens and quick disconnection ensure security, preventing unauthorized access.
- JAFX’s principles can apply to any service integrating AI agents, emphasizing user control and security.
Table of contents
The secret stays on one page

JAFX, an AI-native forex broker, has built the opposite. When a trader connects Claude, ChatGPT or another AI app to a trading account, the app is given only the address of the JAFX MCP server, the endpoint AI applications use to call JAFX’s tools. There is no key to make, copy or paste, and the app never sees the trader’s password.
When the app connects, it opens a JAFX sign-in page in the browser, always on terminal.jafx.com, the JAFX terminal’s own address. The trader enters the trading account number and master password there, in the terminal’s own sign-in fields. The password goes to the trading platform only, never to JAFX’s servers or to the app. JAFX’s guidance is blunt: never type it on a page at any other address.
The flow is OAuth 2.1, and strict: authorisation code with PKCE, S256 only; an issuer identifier on every answer (RFC 9207); and return addresses on https, or plain http only on the local machine. A sign-in page lasts 10 minutes and works once.
A password consent screen that doubts the caller
The most interesting part is what the page shows before anyone presses Allow. First, who is asking, and where the trader will be sent back to. An app that publishes its details on its own website is shown as checked, for example “published by claude.ai”. Any other app simply names itself, and the page says that the name is the app’s own claim. An app that calls itself Claude or ChatGPT but would send the trader somewhere else gets a red warning.
That treats a display name as what it is: untrusted input. Lookalike apps are an obvious attack once assistants can reach money, so the page compares the claimed name with where the app would actually send the trader.
Next comes the account, Live or Demo. Then the trader chooses what the app may do: Read-only, Proposals (every trade waits for the trader’s Confirm in the web terminal) or Trading, which places orders within limits without asking and is for demo accounts only. On a live account an app can read or propose, never trade on its own. The trader also sets limits on lot size, order rate, open positions, a daily loss stop and markets, and how many days the connection lasts.
Short-lived tokens, limits below the model
What the app receives is narrow. Access tokens last an hour and work only at the MCP endpoint; the REST API and the streaming API still require API keys. Refresh tokens rotate at every use and lapse after 30 days unused, and a refresh token used twice ends the connection, since reuse suggests a copy. Either token can be revoked (RFC 7009).
The app then appears on the web terminal’s Developers page under Connected apps, with its permissions, limits and last use. Disconnect stops it within seconds, and it returns only if the trader signs in from the app again.
JAFX’s documentation is candid that a model can be steered. A web page, email or document an assistant reads may contain text written to push it into trading, so it should get no more access than its task needs. The server enforces the limits whatever the assistant is told. JAFX’s help page on connecting an AI assistant to JAFX sets out the same rules for traders.
Read Next
A few related pieces worth your time:
- Modernizing IBM Middleware for AI Without a Big-Bang Rewrite
- The Role of AI and Digital Technology in Modern Freight Logistics
- How Enterprise Teams Can Streamline AI Voice Approvals
Lessons beyond trading and passwords
The pattern travels to any service opening its doors to AI agents. Keep secrets on your own page, never in the agent. Treat an app’s name as a claim and check it against where it sends the user. Let people choose scope at consent, with tighter ceilings where the stakes are real. Issue short-lived tokens bound to one endpoint, detect reuse, and make disconnecting fast and visible. None of it is exotic; it simply refuses to let convenience decide where the keys end up.
JAFX (PTY) LTD is an authorized Financial Services Provider (FSP No. 52058) regulated by the FSCA. Trading leveraged derivatives carries a high risk of losing money rapidly and is not suitable for everyone.









