Create an ATXP account

In order to use the ATXP SDK, you need to create an ATXP account.
1

Create an ATXP account

Visit ATXP Accounts and sign in with your Google account. Your wallet will be credited $10.00 USDC as a welcome bonus.
2

Save your connection details

Step 2 of getting your ATXP connection stringCopy your connection string and save it in an environment variable. The best way to do this is to create a .env file in the root of your project and add the following line:
.env
ATXP_CONNECTION=https://accounts.atxp.ai?connection_token=<random_string>
Never commit your .env file to version control. It is a good idea to add your .env to your .gitignore file to prevent it from being committed.
echo .env >> .gitignore
3

Use your connection string in the ATXP SDK

You now have your connection string. This connection string is tied to your Google authenticated ATXP account. You can use this connection string to connect to the ATXP SDK.
// Import the ATXP SDK
import { atxpClient, ATXPAccount } from '@atxp/client';

// Read the ATXP account details from environment variables
const atxpConnectionString = process.env.ATXP_CONNECTION;

// Create a client using the `atxpClient` function
const client = await atxpClient({
mcpServer: 'https://browse.mcp.atxp.ai/',
account: new ATXPAccount(atxpConnectionString),
});

Resources