# Show GN: AiShell - ChatGPT 기반의 자연어 셸 툴 킷

> Clean Markdown view of GeekNews topic #8426. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8426](https://news.hada.io/topic?id=8426)
- GeekNews Markdown: [https://news.hada.io/topic/8426.md](https://news.hada.io/topic/8426.md)
- Type: show
- Author: [yeongyu](https://news.hada.io/@yeongyu)
- Published: 2023-02-08T13:30:40+09:00
- Updated: 2023-02-08T13:30:40+09:00
- Original source: [github.com/code-yeongyu](https://github.com/code-yeongyu/aishell)
- Points: 16
- Comments: 12

## Topic Body

- ChatGPT 에게 질의하고, 복사 붙여넣기 과정없이 바로 명령으로 실행하세요  
- 생각 안나는 애매한 명령어 스택오버플로우에 검색할 필요없이, 바로 `aishell &lt;question&gt;` 이면 실행 가능  
- 복잡한 git 명령어나 tar 파일 압축해제같은 귀찮은 작업에 특히 유용함

## Comments



### Comment 15053

- Author: yeongyu
- Created: 2023-03-03T22:38:32+09:00
- Points: 1

오늘자 업데이트 버전을 통해, 다른 ChatGPT 클라이언트 들과 달리 쿠키에서 세션값을 가져오거나 OpenAI 토큰을 가져와 입력하는 등의 작업이 필요 없어졌습니다!  
  
사용자는 이제 별도의 설정 절차 하나도 없이 그냥 `aishell &lt;question&gt;` 이면 명령을 실행할 수 있게 되었습니다.  
  
어떤 마법을 사용했는지 궁금하시면 코드 구경하러 오셔도 됩니다 :)

### Comment 15046

- Author: bluesaiha
- Created: 2023-03-03T14:13:35+09:00
- Points: 1

root@8e20098b9127:~# aishell --help  
Traceback (most recent call last):  
  File "/usr/local/bin/aishell", line 5, in &lt;module&gt;  
    from aishell import main  
  File "/usr/local/lib/python3.8/dist-packages/aishell/__init__.py", line 1, in &lt;module&gt;  
    from .cli import cli_app  
  File "/usr/local/lib/python3.8/dist-packages/aishell/cli.py", line 8, in &lt;module&gt;  
    from aishell.adapters.openai_chatgpt_adapter import OpenAIChatGPTAdapter  
  File "/usr/local/lib/python3.8/dist-packages/aishell/adapters/__init__.py", line 1, in &lt;module&gt;  
    from .openai_chatgpt_adapter import OpenAIChatGPTAdapter as OpenAIChatGPTAdapter  
  File "/usr/local/lib/python3.8/dist-packages/aishell/adapters/openai_chatgpt_adapter.py", line 8, in &lt;module&gt;  
    class OpenAIChatGPTAdapter:  
  File "/usr/local/lib/python3.8/dist-packages/aishell/adapters/openai_chatgpt_adapter.py", line 15, in OpenAIChatGPTAdapter  
    def get_openai_cookies(self) -> dict[str, Optional[str]]:  
  
설치후 help 수행 했더니 아래 같은 에러가 나네요 ㅠ  
환경 설정이 잘못된거겠죠....?  
  
환경은 MAC M1 Host의 Ubuntu docker image에서 수행 하였습니다.

### Comment 15051

- Author: yeongyu
- Created: 2023-03-03T20:40:36+09:00
- Points: 1
- Parent comment: 15046
- Depth: 1

최신버전이 아닌거같기도하고, python3.8 은 지원하지 않아서 그런거같은데요! 혹시 3.9 버전으로 재설치해서 시도해보시겠어요?!

### Comment 15026

- Author: mscheong
- Created: 2023-03-02T15:59:32+09:00
- Points: 1

뭔가 y/n 허가 단계를 두어야할 거 같다는 생각이 드네요. 확률은 낮겠지만 chat gpt 가 잘못된 명령어를 줘서 의도치 않은 동작이 발생할 수 있을 것 같아요

### Comment 15034

- Author: yeongyu
- Created: 2023-03-02T18:31:06+09:00
- Points: 1
- Parent comment: 15026
- Depth: 1

소중한 의견 주신 덕분에 해당 기능이 오늘 배포 버전에 추가되었습니다! 또 좋은 제안 있으시면 언제든 말씀주세요!!

### Comment 14653

- Author: roehddl
- Created: 2023-02-09T08:49:04+09:00
- Points: 1

revChatGPT==1.2.1 에서 기본으로 사용된 text-chat-davinci-002-20221122 모델이 지금은 사용이 불가능해서, 유료 모델인 text-davinci-003로 전환해서 사용해야하네요.  
https://pypi.org/project/revChatGPT/

### Comment 14693

- Author: yeongyu
- Created: 2023-02-10T13:06:00+09:00
- Points: 1
- Parent comment: 14653
- Depth: 1

gpt3 기반으로도 사용 가능하도록 패치했습니다! 피드백 감사드립니다 :)

### Comment 14669

- Author: yeongyu
- Created: 2023-02-09T13:49:40+09:00
- Points: 1
- Parent comment: 14653
- Depth: 1

그러네요! 피드백 감사합니다. https://github.com/code-yeongyu/AiShell/issues/1 이슈 등록해두었고, 곧 픽스하겠습니다.

### Comment 14652

- Author: ryuheechul
- Created: 2023-02-09T02:50:39+09:00
- Points: 1

코드연구중(?) 이시군요  
어떻게 활용하느냐에 따라서 유용할 수 있겠다 싶고 코드도 간단하고 좋네요.  
명령어에 `rm` 이 들어가거나 명령어가 복잡할 경우에는 실행전에 물어보는 안전절차가 있으면 좋겠다는 생각이들고 (명령어 설명도 곁들여 볼수도 있겠네요) 현재는 실행전에 이미 실행했다고 출력하는 버그도 제보합니다. 실행중... 또는 going to execute `command arg …` 이라고 출력하면 어떨까 싶네요.

### Comment 14670

- Author: yeongyu
- Created: 2023-02-09T13:52:01+09:00
- Points: 1
- Parent comment: 14652
- Depth: 1

좋은 아이디어 감사합니다! 이것도 https://github.com/code-yeongyu/AiShell/issues/2 이슈 등록해두었어요 :) 곧 픽스하겠습니다 !!

### Comment 14649

- Author: edunga1
- Created: 2023-02-08T20:59:03+09:00
- Points: 1

https://githubnext.com/projects/copilot-cli/  
깃허브의 copilot cli는 명령어 완성에만 집중하는데, 이건 더 다양한 일도 가능하겠네요!

### Comment 14647

- Author: dungsil
- Created: 2023-02-08T19:10:42+09:00
- Points: 1

맥OS 터미널 Warp가 생각나네요
