Skip to content

Commit c4ecf58

Browse files
committed
updated README and config command.
1 parent fa9aecd commit c4ecf58

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An open-source mono-repository containing the MyCoder agent and cli.
66

77
## Features
88

9-
- 🤖 **AI-Powered**: Leverages Anthropic's Claude API for intelligent decision making
9+
- 🤖 **AI-Powered**: Leverages Anthropic's Claude and OpenAI models for intelligent decision making
1010
- 🛠️ **Extensible Tool System**: Modular architecture with various tool categories
1111
- 🔄 **Parallel Execution**: Ability to spawn sub-agents for concurrent task processing
1212
- 📝 **Self-Modification**: Can modify code, it was built and tested by writing itself

packages/cli/README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Command-line interface for AI-powered coding tasks.
44

55
## Features
66

7-
- 🤖 **AI-Powered**: Leverages Anthropic's Claude API for intelligent coding assistance
7+
- 🤖 **AI-Powered**: Leverages Anthropic's Claude and OpenAI models for intelligent coding assistance
88
- 🛠️ **Extensible Tool System**: Modular architecture with various tool categories
99
- 🔄 **Parallel Execution**: Ability to spawn sub-agents for concurrent task processing
1010
- 📝 **Self-Modification**: Can modify code, it was built and tested by writing itself
@@ -74,11 +74,44 @@ mycoder config get githubMode
7474

7575
# Set a configuration value
7676
mycoder config set githubMode true
77+
78+
# Configure model provider and model name
79+
mycoder config set modelProvider openai
80+
mycoder config set modelName gpt-4o-2024-05-13
81+
```
82+
83+
### Model Selection
84+
85+
MyCoder supports both Anthropic and OpenAI models. You can configure which model to use with the following commands:
86+
87+
```bash
88+
# Use OpenAI's GPT-4o model
89+
mycoder config set modelProvider openai
90+
mycoder config set modelName gpt-4o-2024-05-13
91+
92+
# Use OpenAI's o3-mini model
93+
mycoder config set modelProvider openai
94+
mycoder config set modelName o3-mini-2024-07-18
95+
96+
# Use Anthropic's Claude 3.7 Sonnet model
97+
mycoder config set modelProvider anthropic
98+
mycoder config set modelName claude-3-7-sonnet-20250219
99+
100+
# Use Anthropic's Claude 3 Opus model
101+
mycoder config set modelProvider anthropic
102+
mycoder config set modelName claude-3-opus-20240229
103+
```
104+
105+
You can also specify the model provider and name directly when running a command:
106+
107+
```bash
108+
mycoder --modelProvider openai --modelName gpt-4o-2024-05-13 "Your prompt here"
77109
```
78110

79111
## Environment Variables
80112

81-
- `ANTHROPIC_API_KEY`: Your Anthropic API key (required)
113+
- `ANTHROPIC_API_KEY`: Your Anthropic API key (required when using Anthropic models)
114+
- `OPENAI_API_KEY`: Your OpenAI API key (required when using OpenAI models)
82115

83116
## Development
84117

packages/cli/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import yargs, { CommandModule } from 'yargs';
66
import { hideBin } from 'yargs/helpers';
77

88
import { command as defaultCommand } from './commands/$default.js';
9+
import { command as configCommand } from './commands/config.js';
910
import { command as testSentryCommand } from './commands/test-sentry.js';
1011
import { command as toolsCommand } from './commands/tools.js';
1112
import { sharedOptions } from './options.js';
@@ -35,6 +36,7 @@ const main = async () => {
3536
defaultCommand,
3637
testSentryCommand,
3738
toolsCommand,
39+
configCommand,
3840
] as CommandModule[])
3941
.strict()
4042
.showHelpOnFail(true)

0 commit comments

Comments
 (0)