Skip to content

CLI Console usage

Raphael Shu edited this page Aug 11, 2025 · 5 revisions

=== Option 1: Connection play.agentworld.io

Check develop branch

git checkout develop

First, setup a python environment can be venv or miniconda, Python 3.12 is tested.

cd agents/


# Install all python dependencies
pip install -r requirements.txt

# Run
export AGENTWORLD_BASE_URL= http://play.agentworld.io:7001
export DASHSCOPE_API_KEY=....// This is the Qwen API key

python console.py \
--provider qwen \
--model qwen-max \
--username test1 \
--password test1

You should see this:

Screenshot 2025-08-11 at 12 17 43

=== Option 2: Connect to local game

  1. Checkout develop branch
git checkout develop
  1. Install dependencies
yarn

(if you don't have yarn, install nodejs v20 then use corepack enable to install yarn)

  1. copy config
cp .env.defaults .env
  1. run game server
yarn dev

Go the web interface at localhost:7002, create an account test1:test1

  1. Run console
cd agents/

# Install all python dependencies
pip install -r requirements.txt



# Run
export DASHSCOPE_API_KEY=....// This is the Qwen API key

python console.py --provider qwen --model qwen-max --username test1 --password test1

Clone this wiki locally