Phala Network Docs
  • Home
    • πŸ‘ΎPhala Network Docs
  • Overview
    • βš–οΈPhala Network
      • πŸ’ŽPhala Cloud
      • πŸ₯·Dstack
      • πŸ”GPU TEE
    • πŸ’ŽPHA Token
      • πŸͺ™Introduction
      • πŸ‘Delegation
        • Delegate to StakePool
        • What is Vault
        • What is Share
        • WrappedBalances & W-PHA
        • Examples of Delegation
        • Use Phala App to Delegate
        • Estimate Your Reward
      • πŸ—³οΈGovernance
        • Governance Mechanism
        • Join the Council
        • Voting for Councillors
        • Apply for Project Funding
        • Phala Treasury
        • Phala Governance
        • Setting Up an Account Identity
  • Phala Cloud
    • πŸš€Getting Started
      • Sign-up for Cloud Account
      • Start from Cloud UI
      • Start from Cloud CLI
      • Start from Template
    • 🟧Launch an Eliza Agent
    • πŸ“¦Create CVM
      • Create CVM with Docker Compose
      • Create CVM with Private Docker Image
      • Set Secure Environment Variables
      • Access Your Applications
      • Setting Up Custom Domain
      • Debug Your Application
      • Deployment Cheat Sheet
    • βš™οΈCVM Management
      • Upgrade Application
      • Resize Resources
      • Check Logs
      • Private Log Viewer
    • πŸ”„Deploy Docker App in TEE
      • Expose Service Port
      • Generate RA Report
      • Access Database
      • Create Crypto Wallet
    • πŸ›³οΈSetup a CI/CD Pipeline
    • πŸ› οΈPhala Cloud CLI Reference
      • phala
        • auth
        • cvms
        • docker
        • simulator
    • Production Checklist
    • ❓FAQs
    • πŸ”Troubleshooting
    • πŸ“–Glossary
    • πŸ“‹References
    • πŸ”’Use Cases
      • TEE with AI
      • TEE with FHE and MPC
      • TEE with ZK and ZKrollup
  • Dstack
    • Overview
    • Getting Started
    • Hardware Requirements
    • Design Documents
      • Decentralized Root-of-Trust
      • Key Management Protocol
      • Zero Trust HTTPs (TLS)
    • Acknowledgement
  • LLM in GPU TEE
    • πŸ‘©β€πŸ’»Host LLM in GPU TEE
    • πŸ”GPU TEE Inference API
    • 🏎️GPU TEE Benchmark
  • Tech Specs
    • ⛓️Blockchain
      • Blockchain Entities
      • Cluster of Workers
      • Secret Key Hierarchy
  • References
    • πŸ”Setting Up a Wallet on Phala
      • Acquiring PHA
    • πŸŒ‰SubBridge
      • Cross-chain Transfer
      • Supported Assets
      • Asset Integration Guide
      • Technical Details
    • πŸ‘·Community Builders
    • 🀹Hackathon Guides
      • ETHGlobal Singapore
      • ETHGlobal San Francisco
      • ETHGlobal Bangkok
    • 🀯Advanced Topics
      • Cross Chain Solutions
      • System Contract and Drivers
      • Run Local Testnet
      • SideVM
    • πŸ†˜Support
      • Available Phala Chains
      • Resource Limits
      • Transaction Costs
      • Compatibility Matrix
      • Block Explorers
      • Faucet
    • ⁉️FAQ
  • Compute Providers
    • πŸ™ƒBasic Info
      • Introduction
      • Gemini Tokenomics (Worker Rewards)
      • Budget balancer
      • Staking Mechanism
      • Requirements in Phala
      • Confidence Level & SGX Function
      • Rent Hardware
      • Error Summary
    • 🦿Run Workers on Phala
      • Solo Worker Deployment
      • PRBv3 Deployment
      • Using PRBv3 UI
      • PRB Worker Deployment
      • Switch Workers from Solo to PRB Mode
      • Headers-cache deployment
      • Archive node deployment
    • πŸ›‘οΈGatekeeper
      • Collator
      • Gatekeeper
  • Web Directory
    • Discord
    • GitHub
    • Twitter
    • YouTube
    • Forum
    • Medium
    • Telegram
  • Legacy
    • Information
    • βš’οΈPhala SDK
    • πŸ‘¨β€πŸš€Builders Program
    • πŸ₯·AI Agent Contract
      • WapoJS Functions
      • Phala Agent Gateway
  • AI Agent Contract (Legacy)
    • πŸ‘©β€πŸ’»Getting Started
      • Build Your First AI Agent Contract
      • Build An Agent to Transact Onchain
      • Build Your AI Agent Contract with OpenAI
      • Build Your AI Agent Contract with LangChain
      • Integrate with 3rd Party API with HTTP Request
      • Run a Local Testnet With Docker
      • AI Agent Contract Templates
    • πŸ§™β€β™‚οΈExamples
      • Create a Weather Agent w/ Function Calling
    • ⛓️Supported Chains
    • FAQ
  • Agent Wars (Legacy)
    • πŸ“œIntroduction
    • πŸ’ΈTokenomics
    • ▢️Getting Started
      • Wallet Setup & Get PHA
      • Buy and Sell Keys
    • πŸ§‘β€πŸ«Tutorial
Powered by GitBook
LogoLogo

Participate

  • Compute Providers
  • Node
  • Community
  • About Us

Resources

  • Technical Whitepaper
  • Token Economics
  • Docs
  • GitHub

More

  • Testnet
  • Explorer
  • Careers
  • Responsible Disclosure

COPYRIGHT Β© 2024 PHALA.LTD ALL RIGHTS RESERVED. May Phala be with you!

On this page
  • Step 1: Customize the Agent Character File
  • Step 2: Configure Clients for Agent Connection
  • Step 3: Set the Model Provider
  • Step 4: Review Configuration and Deploy the Agent

Was this helpful?

Edit on GitHub
  1. Phala Cloud

Launch an Eliza Agent

PreviousStart from TemplateNextCreate CVM

Last updated 16 days ago

Was this helpful?

Phala Cloud has introduced a new feature that allows users to deploy an without any coding. You can access this feature through . In this tutorial, we'll guide you through the process of deploying an agent named Trump, capable of tweeting in his distinctive tone.

Before you begin, it would be ideal to understand what an is. However, if you're unfamiliar with it, that's perfectly fine. You can start with a template and customize it to suit your needs. There are only two things you need to prepare:

  • 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 . 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.

  • TWITTER_USERNAME="realagenttrump_"
    TWITTER_PASSWORD="giggity giggity"
    TWITTER_EMAIL="realagenttrump_@gmail.com"
  • 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.

<figure><img src="https://img0.phala.world/files/1960317e-04a1-808b-9218-cf66c144cb27.jpg" alt=""><figcaption></figcaption></figure>
  • 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

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.

Now, let’s check the agent X account, it already starting to mutter. And congratulation, you deployed an autonomous agent in TEE without a single line codingπŸŽ‰.

πŸ’‘ Join the technical support groups if you got any questions.

Resources

You need to choose a model provider for your agent to connect with and send requests to. In this example, we'll use , but you can also opt for other model providers like , 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 . Type API URL: https://api.openai.com/v1

After clicking the "Complete" button, you will be redirected to the Cloud dashboard, If not yet login, it will ask to login first and all your data will store locally; If you don’t have an account, you can register one with this . Please be patient, as it may take several minutes to complete the deployment. Once the status changes from "STARTING" to "RUNNING," it indicates that your agent is now live.

CN: EN:

🟧
OpenAI
RedPill
dashboard
invit link
https://t.me/+GZwUzcON9OkzOGVl
https://t.me/+MfWRvYRyQDk2MjQ1
https://github.com/elizaOS/eliza
https://github.com/elizaOS/eliza-starter
https://github.com/thejoven/awesome-eliza
https://github.com/elizaOS/elizaos.github.io
Eliza agent
cloud.phala.network/eliza
Eliza's character file
Eliza official repository