- An X account for the agent to connect and tweet
- An OpenAI account for the agent to send requests and harness its intelligence
Step 1: Customize the Agent Character File
You can either upload your own character file or select one from the built-in options available in the Eliza official repository. In this example, we’ll choose Trump. Don’t worry—you can still customize the template later if needed.
Step 2: Configure Clients for Agent Connection
You can select multiple clients and configure the account information for each. In this example, we’ll choose an X account and set the necessary information. You can also override the account information later if needed
- Set basic information
- Set
TWITTER_USERNAME
,TWITTER_PASSWORD
,TWITTER_EMAIL
environments that you set for your account. -
- Set
TWITTER_2FA_SECRET
- You should enable 2FA on your X account settings page and select an authentication app as the method. During setup, make sure to copy the secure code (it’s 16 uppercase letters and numbers) by click the button under the QR code. This secure code will be the value you set for
TWITTER_2FA_SECRET
.
- Others
- To enable the agent to reply to messages more quickly, it is recommended to set
TWITTER_POLL_INTERVAL=10,
`` ``but means more quote usage from LLM provders.
Step 3: Set the Model Provider
You need to choose a model provider for your agent to connect with and send requests to. In this example, we’ll use OpenAI, but you can also opt for other model providers like RedPill, which supports over 200 AI models with a unified account. If you’re unsure about other settings, you only need to configure the API key and API URL and model names. You can generate an API key using your OpenAI account on the dashboard. Type API URL:https://api.openai.com/v1

Step 4: Review Configuration and Deploy the Agent
In this step, you can review your configuration settings. You’ll have the opportunity to update account information in the Environment Variables section and further customize the character file before deploying the agent.

Resources
- https://github.com/elizaOS/eliza
- https://github.com/elizaOS/eliza-starter
- https://github.com/thejoven/awesome-eliza
- https://github.com/elizaOS/elizaos.github.io
❓ FAQs
Do I need to create a custom Docker image for my Eliza agent?
- If you want to use the default framework example, you can use the template provided by Phala
- If you have customized code, you’ll need to:
- Convert your Eliza code into a Docker image
- Upload it to a Docker registry
- Configure it in the Phala TEE setup
Can I change the Docker image after creating an agent?
Yes, applications are upgradable. To update your application:- Push your updated Docker image to Docker Hub
- Execute the upgrade on the cloud dashboard
What are the recommended resources for running Eliza?
It’s strongly recommended to run Eliza with 2 vCPUs + 4GB RAM for optimal performance.How can I connect the X Account with my Agent?
Besides setting user name, password, and email with specific environments, you also need to enable 2FA on your X account and set it throughTWITTER_2FA_SECRET
. Check the tutorial for more information.
If you still receive a Login attempt failed
error, consider logging into your X account via a browser and logging out of the existing session. See the related issue on the Eliza repository.