You need to configure your credentials to use the Xpander CLI.? Would you like to configure your credentials now? Yes? Enter your Xpander API key: IhPLk2Cu5BXw5BmVBhld3p31mTpAxC892pD6O5E3API Key: IhPL...O5E3 (first and last 4 characters shown)✔ API key validation successfulAPI key saved to profile "default".Organization ID will be auto-detected for you now...⠏ Detecting organization ID...Organization ID detected: 8d185373-8b24-47a7-8607-3e9036b968bbOrganization ID saved to profile "default".✔ Organization ID detected: 8d185373-8b24-47a7-8607-3e9036b968bbFound 1 agent(s) in your organization.Set "default" as the default profile.Credentials stored at: /Users/david/.xpander/credentialsProfile: defaultConfiguration successful.
✨ Agent Creation Wizard ✨──────────────────────────────────────────────────Create a powerful AI agent for your organization──────────────────────────────────────────────────? What name would you like for your agent? my-first-agent⠋ Creating agent "my-first-agent"...Creating agent in organization: 8d185373-8b24-47a7-8607-3e9036b968bb...✔ Agent "my-first-agent" created successfully!🚀 Your Agent is Ready!──────────────────────────────────────────────────Name: my-first-agentID: 4fe1163d-bb00-4837-9e25-6f82aed8038cIcon: 🚀Model: openai/gpt-4o──────────────────────────────────────────────────✅ Agent creation complete!? Do you want to load this agent into your current workdir? Yes✨ Initializing agent────────────────────────────────────────────────────────────ℹ Agent my-first-agent retrieved successfully? The current directory is not empty. Proceeding will override 'requirements.txt' and add or update xpander-related files (xpander_config.json, agent_instructions.json, etc). Yes✔ Agent initialized successfully
2
Configure environment variables
Create a .env file in the root directory with the following credentials:
.env file
XPANDER_API_KEY=your_xpander_api_key # From the xpander login outputOPENAI_API_KEY=your_openai_api_keyOPENAI_MODEL_ID=gpt-4o