Where exactly does it say in the Bible to confess your sins directly to God?
Proverbs 28:13: He who conceals his transgressions will not prosper, but he who confesses and forsakes them will obtain mercy.
Mark 1:4-5: John the baptizer appeared in the wilderness, preaching a baptism of repentance for the forgiveness of sins. And there went out to him all the country of Judea, and all the people of Jerusalem; and they were baptized by him in the river Jordan, confessing their sins.
John 20:22-23:"And when he had said this, he breathed on them, and said to them, 'Receive the Holy Spirit. If you forgive the sins of any, they are forgiven; if you retain the sins of any, they are retained.”
James 5:16: Therefore confess your sins to one another, and pray for one another, that you may be healed. The prayer of a righteous man has great power in its effects.
1 John 1:9: If we confess our sins, he is faithful and just, and will forgive our sins and cleanse us from all unrighteousness
2 Corinthians 5:18-20: All this is from God, who through Christ reconciled us to himself and gave us the ministry of reconciliation; that is, in Christ God was reconciling the world to himself, not counting their trespasses against them, and entrusting to us the message of reconciliation. So we are ambassadors for Christ, God making his appeal through us. We beseech you on behalf of Christ, be reconciled to God.